Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PhpÊý×é

 
1,¶¨Î»Êý×飺
bool in_array ( mixed needle,array haystack[,bool strict]) ²éÕÒÖ¸¶¨ÔªËØ£»
array array_keys (arraqy input [, mixed search_value]) ·µ»Ø¼üÖµ×é³ÉµÄÊý×飻
bool array_key_exists(mixed key,array search) ÅжϼüÖµÊÇ·ñΪָ¶¨µÄ¼üÖµ£»
array array_values (array input) ·µ»ØÊý×éÖеÄÔªËØÖµ£»
2, ±éÀúÊý×飺
mixed key (array input ) ·µ»Øµ±Ç°Ö¸ÕëÔªËصļüÖµ£»
mixed reset ( array input_array ) ½«Ö¸ÕëÖØÖõ½Êý×éµÄÆðʼλÖã»
array each (array input_array )    ·µ»Øµ±Ç°Ö¸ÕëλÖõÄÊý×éÖµ£»
mixed current (array input_array )   ·µ»Øµ±Ç°Ö¸ÕëλÖõÄÊý×éÔªËØÖµ£»
mixed end ( array input_array )   ·µ»Øµ±Ç°Ö¸ÕëÖ¸Ïò×îºóÒ»¸öÔªËØ£»
mixed next (array input_array ) ·µ»Øµ±Ç°Ö¸ÕëÏÂһλÖõÄÊý×éÔªËØ£»
mixed prev (array input_array ) ·µ»ØλÓÚµ±Ç°Ö¸ÕëÇ°Ò»¸öλÖõÄÊý×éÖµ£»
3,Ôö¼Ó£¬É¾³ýÊý×éÔªËØ£º
int array_push( array & array,mixe var [, mixed ...])½«Ö¸¶¨ÊýÖµÔö¼Óµ½Êý×éµÄĩβ£»
mixed array_pop (array & array) ·µ»ØÊý×éµÄ×îºóÒ»¸öÔªËØ£¬²¢ÖØÖÃÊý×éÖ¸Õ룻
mixed array_shift(array target_array) ·µ»ØÊý×éµÄµÚÒ»¸öÔªËØÖµ£»
int array_unshift ( array &array,mixed var [,mixed ...] )½«Ö¸¶¨µÄÔªËØÔö¼Óµ½ÆðʼλÖÃ
array array_pad(array input,int pad_size,mixed pad_value)Ôö¼ÓÊý×éµ½Ö¸¶¨µÄ³¤¶È
4,Êý×éµÄÅÅÐò£º
bool sort/rsort (array &array[,int sort_flags]); ÉýÐòºÍ½µÐò£»
5£¬Êý×éµÄºÏ²¢ºÍ²ð·Ö£º
array array_combine(array keys,array values) Êý×éµÄºÏ²¢£»
array array_merge(array array1[,array array2[array array...]]) ¶à¸öÊý×éºÏ²¢²¢·µ»ØÒ»¸öÐÂÊý×飻
array array_slice (array array,int offset[,int length]) ´ÓÊý×éµÄÖ¸¶¨Î»ÖÿªÊ¼£¬ÌáÈ¡Ö¸¶¨µÄ³¤¶È£¬²¢±£´æµ½Ò»¸öÐÂÊý×飻
array explode(string separator,string string) ·Ö¸îÖ®ºóÔÙ½«½á¹û±£´æ£»
array implode(string glue,array pieces)Ö¸¶¨ÔªËØͨ¹ý×Ö·û´®½øÐÐÁ¬½ÓµÄÐÂ×Ö·û£»
6£¬´´½¨Ö¸¶¨·¶Î§µÄÊý×飺
array range ( mixe low ,mixed high[,number step]) ´´½¨Ö¸¶¨·¶Î§µÄÊý×飻
array shuffle($array) ¶ÔÖ¸¶¨µÄÊý×éÖеÄÔªËؽøÐÐËæ»úÅÅÐò£»
number array_sum (array input_array) ¶ÔËùÓÐÔªËؽøÐÐÇóºÍ£»
<?php
$a=range(1,50,2);
$array=arra


Ïà¹ØÎĵµ£º

blogÔ´ÂëÕûÀí£ºphp+mysql²©¿Í³ÌÐò25ÖÖ

Blogϵͳ×÷Ϊ´ó¼Ò×î³£½Ó´¥µÄ»¥ÁªÍø¶«¶«£¬ÔÚÕ¾³¤ÈºÌåÖм¸ºõÈËÊÖÒ»²©£¬´ÓÖªÃûÃÅ»§µÄ²©¿ÍƵµÀ£¬µ½ÍøÂçÓªÏúר¼Ò²©¿Í£¬ÍøÃñ¶Ô²©¿ÍµÄ¹Ø×¢¶ÈÔÚ²»¶ÏÌá¸ß²¢É¡£Ä¿Ç°ÍøÉÏÃâ·ÑµÄblogϵͳ̫ÔÓ£¬ÔÚ´ËÕûÀíPHP°æµÄBlog½éÉÜÈçÏ£º
1¡¢wordpress:http://www.wordpress.org ¹¦ÄÜÒ²ºÜÈ«Ã棬Ӧ¸ÃÊÇÖ§³ÖblogµÄÊ×Ñ¡¡£ËüÓÐ×îÇ¿µÄÄ£°æ¹¦ÄÜ£¬ÒѾ­ ......

php±àÂëheaderÖвÎÊý˵Ã÷

ÍøÒ³µÄ»º´æÊÇÓÉHTTPÏûϢͷÖеġ°Cache-control¡±À´¿ØÖƵģ¬³£¼ûµÄÈ¡ÖµÓÐprivate¡¢no-cache¡¢max-age¡¢must-revalidateµÈ£¬Ä¬ÈÏΪprivate¡£Æä×÷Óøù¾Ý²»Í¬µÄÖØÐÂä¯ÀÀ·½Ê½·ÖΪÒÔϼ¸ÖÖÇé¿ö£º £¨1£© ´ò¿ªÐ´°¿Ú
ֵΪprivate¡¢no-cache¡¢must-revalidate£¬ÄÇô´ò¿ªÐ´°¿Ú·ÃÎÊʱ¶¼»áÖØзÃÎÊ·þÎñÆ÷¡£
¶øÈç¹ûÖ¸¶¨ÁËmax ......

40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇPHP²ËÄñ

ËäÈ»ÏÂÃæµÄ¶«Î÷ÊÇÕë¶ÔPHP¿ª·¢ÈËԱ˵µÄ£¬ÆäʵºÜ¶àÔ­Ôò¶¼ÊÇͨÓõģ¬ASP.NET,JSP¿ª·¢ÈËÔ±Ò²Ò»Ñù¿ÉÒÔ²ÎÕÕ£¡ ÌùÔÚÕâÀïºÍ´ó¼Ò¹²Ã㣡
ÎÄ×÷ÕߣºReinhold Weber
Ô­ÎÄÁ´½Ó£º40 signs you really are a lousy PHP programmer
ÒëÕߣºdavidkoree
40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇPHP²ËÄñ
ÎÒÔ¸Òâ°Ñ±¾ÎĹéÈëÎҵē±à³ÌôÜÊ”ϵÁС£¾¡¹ÜÔÚ ......

Ê®Ììѧ»áphpÖ®µÚÎåÌì

ѧϰĿµÄ£ºÑ§»á¶ÁÈ¡Êý¾Ý
¡¡¡¡ÏÈ¿´Á½¸öº¯Êý£º
¡¡¡¡1¡¢mysql_query
¡¡¡¡ËͳöÒ»¸ö query ×Ö·û´®¡£ Óï·¨: int mysql_query(string query, int [link_identifier]); ·µ»ØÖµ: ÕûÊý
¡¡¡¡±¾º¯ÊýËͳö query ×Ö·û´®¹© MySQL ×öÏà¹ØµÄ´¦Àí»òÕßÖ´ÐС£ÈôûÓÐÖ¸¶¨ link_identifier ²ÎÊý£¬Ôò³ÌÐò»á×Ô¶¯Ñ°ÕÒ×î½ü´ò¿ªµÄ ID¡£µ± query ²éÑ ......

phpÃæÏò¶ÔÏóµÄ»ù´¡

£±,ÀàµÄ½á¹¹ÉùÃ÷·½Ê½£º
¡¡¡¡ class ÀàÃû {
               //ÀàÌå
      }
£²£¬ÊôÐԺͷ½·¨µÄ¶¨Ò壻
¡¡¡¡Ê¹Óù¹Ô캯Êý£º
¡¡¡¡Ê¹ÓÃÎö¹¹º¯Êý£º
¡¡¡¡ÀàµÄʵÀý»¯£º
£³,¿ØÖÆ·ÃÎÊȨÏÞ£ºpublic , private protected;
£´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ