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

PHPÖÐstr_replaceº¯ÊýʹÓÃÊý×é

º¯ÊýÔ­ÐÍ£ºmixed str_replace(mixed needle,mixed new_needle,mixed haystack[,int &count]);
      needle£ºÒª±»Ìæ»»µÄ×Ö·û´®£¬new_needle£ºÌæ»»ÓõÄ×Ö·û´®£¬haystack£º²Ù×÷×Ö·û´®£¬count£ºÌæ»»´ÎÊý¡¾¿ÉÑ¡²ÎÊý¡¿
     ÎÒÃÇÖصãÊÔÑéÇ°Èý¸öÔÚʹÓÃÊý×éÊǵÄÖ´Ðз½Ê½£º
    
      ÔÚ¶¼²»Ê¹ÓÃÊý×éʱ£¬¸Ãº¯ÊýÖ±½ÓʹÓÃnew_needleÌæ»»ËùÓеÄneedle²¢·µ»ØÌæ»»ºóµÄ×Ö·û´®¡£È磺str_replace("m","n","my name is jim!")·µ»Øny nane is jin!
     1¡¢Ö»¶ÔneedleʹÓÃÊý×é¡£
     ʾÀý£ºstr_replace(array('m','i'),'n',"my name is jim!");·µ»Ø£ºny nane ns jnn!
     ¿ÉÒÔ¿´³ö£¬º¯Êý˳ÐòÐԵĶÔÊý×éÖÐÿ¸ö×Ö·û´®½øÐÐÌæ»»£¬²¢·µ»ØÌæ»»ºóµÄ×Ö·û´®¡£
      2¡¢Ö»¶Ônew_needleʹÓÃÊý×é¡£
     ʾÀý£ºstr_replace('m',array('n','z'),"my name is jim!\n")·µ»Ø£ºArrayy naArraye is jiArray!
      ¸ÃÌæ»»±È½ÏÓÐÒâ˼£¬Èç¹ûÖ»¶ÔµÚ¶þ¸ö²ÎÊýʹÓÃÊý×éÔòº¯Êý½«Æä×÷Ϊ×Ö·û´®Array½øÐÐʹÓ㬽«ËùÓеÄneedleÌ滻ΪÁËÊý×é¡£
     3¡¢Ö»¶ÔhaystackʹÓÃÊý×é¡£
     ʾÀý£ºstr_replace("m","n",array("my name is jim!","the game is over!"))¸ÃÓï¾äÖ´Ðнá¹û·µ»ØÒ»¸öÊý×飬¼´·Ö±ðΪ´«ÈëµÄÁ½¸ö×Ö·û´®Ìæ»»ºóµÄ½á¹û¡£
     Èç¹ûÊä³öÊý×éÄÚÈݻῴµ½£ºny nane is jin! the gane is over!
     4¡¢¶ÔneedleºÍnew_needle¶¼Ê¹ÓÃÊý×é¡£
     ʾÀý£ºstr_replace(array("m","i"),array("n","z"),"my name is jim!")·µ»Ø£ºny nane zs jzn!
      ²é¿´Ö´Ðнá¹û¿ÉÒÔ·¢ÏÖ£¬Èç¹ûÇ°Á½¸ö²ÎÊý¶¼Ê¹ÓÃÊý×éÔòº¯Êý°ÑÊý×é¸÷¸ö¶ÔÏóÏî×Ö·û´®½øÐÐÁËÌæ»»£¬¼°needleµÄµÚÒ»ÏîÌ滻Ϊnew_needleµÄµÚÒ»Ïî¡£ÒÔ´ËÀàÍÆ¡£
      Èç ¹ûneedleÊý×é±Ènew_deedle³¤£¬Àý È磺str_replace(array("m","i","s"),array("n","z"),"my name is jim!");·µ»Ø£ºny nane z jzn!¿É¼û£¬¶ÔÓÚneedleÊý×é¶à³öÀ´µÄ×Ö·û´®±»Ì滻ΪÁË¿Õ´®¡£
     Èç¹ûnew_needleÊý×é±Èneedle³¤£¬Àý È磺str_replace(arr


Ïà¹ØÎĵµ£º

³ÉΪPHP¸ßÊÖµÄÎå¸öÃؼ® ÄÏÈý·½

¾­³£ÓÐһЩ¾­Ñé²»×ãµÄPHP¿ª·¢ÈËÔ±ÔÚFreenodeµÄphp IRCƵµÀÉÏÎÊÎÊÌâ¡£Èç¹ûÎÊÌâºÜËöË飬»òÕß´ð°¸ÏÔ¶øÒ×¼û£¬»ò±íÏÖµÃÏóÒ»¸ö²ËÄñ£¬ºÜ¿ìËûÃǾͻᷢÏÖ»áÊܵ½ÈçÏÂһЩ»Ø¸´µÄÅں䣺“È¥¶Á¸ÃËÀµÄÊÖ²áÈ¥°É”£¬“ºÃºÃȥѧһѧPHP°É”£¬“ÎÒÃDz»ÊÇÄã¸öÈ˵ĵ¼Ê¦”»ò¸üÖ±½ÓµÄ“ÄãÐèÒª³ÉΪһ¸ö¸üºÃµÄPH ......

һЩ±»ºöÊ PHP º¯Êý£¨ÕûÀí£©

ÕæµÄÊDz»Óò»ÖªµÀ£¬ÆäʵÎÒÃÇÊìϤµÄ PHP »¹ÓкܶàºÃ¶«Î÷ûÓз¢¾ò¡£¿´
µ½ÕâƪÎÄÕÂ
£¬µ±Ê±¾ÍÀá±¼Á˺ü¸»Ø£¬ÖصãÍƼöÏ£¬Ë³±ãÎÒ×Ô¼ºÒ²×ö¸öÕûÀí¡£
sys_getloadavg()
Õâ¸öº¯Êý
·µ»Øµ±Ç°ÏµÍ³µÄ¸ºÔؾùÖµÐÅÏ¢
£¨µ±È» Windows
ϲ»ÊÊÓã©£¬ÏêϸÎĵµ¿ÉÒÔ·­ÔÄ PHP µÄÏà¹ØÎĵµ¡£ÎĵµÖÐÓжÎʾÀý´úÂ룬»ù±¾ÉÏÒ²¾ÍÄÜ¿´³öËüµÄÓÃ;ÁË¡ ......

php³öÏÖÍøÒ³ÂÒÂëÎÊÌâ

ÓÃPHPmyAdmin²Ù×÷MySQLÊý¾Ý¿âºº×ÖÏÔʾÕý³£ £¬µ«ÓÃPHPÍøÒ³ÏÔʾMySQLÊý¾ÝʱËùÓкº×Ö¶¼±ä³ÉÁË?ºÅ¡£
Ö¢×´£ºÓÃPHPmyAdminÊäÈ뺺×ÖÕý³££¬µ«µ±PHPÍøÒ³ÏÔʾMySQLÊý¾Ýʱºº×־ͱä³ÉÁË?ºÅ£¬²¢ÇÒÓжàÉÙ¸öºº×Ö¾ÍÓжàÉÙ¸ö?ºÅ¡£ºÜ¶àѧԱ¶¼Óöµ½ÁË´ËÎÊÌ⣬ÓÈÆäÊÇÔÚ°²×°ÁË×îаæµÄAppservºó¡£Îª´ËÐí¶àѧԱ·ÅÆúÁËPHP£¬¸ÄѧASPÁË¡£
Ô­Òò£ºÃ» ......

PHP/MYSQLʵÏÖ°´×Öĸ¼ìË÷

·½·¨Ò»£º½¨Ò»¸öÆ´Òô±í t_cosler £¬´æ·Åÿ¸ö×Öĸ¿ªÍ·µÄµÚÒ»¸öºº×ֵıàºÅºÍ×îºóÒ»¸öºº×ֵıàºÅ¡£   
BatchFile code+------+--------+-------+  
| f_PY | cBegin | cEnd  |  
+------+--------+-------+  
| A    |  45217 | 45252 | & ......

PHPÖÐʹÓÃHTTPЭÒéµÄ״̬Âë

<?PHP
/**
* HTTP Protocol defined status codes
* @param int $num
*/
function https($num) {
$http = array (
100 => "HTTP/1.1 100 Continue",
101 => "HTTP/1.1 101 Switching Protocols",
200 => "HTTP/1.1 200 OK",
201 => "HTTP/1.1 201 Created",
202 => "HTTP/1.1 202 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ