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

ÈçºÎ±àдPHPÀ©Õ¹

 ¼ò ½é
PHPÈ¡µÃ³É¹¦µÄÒ»¸öÖ÷ÒªÔ­ÒòÖ®Ò»ÊÇËýÓµÓдóÁ¿µÄ¿ÉÓÃÀ©Õ¹¡£web¿ª·¢ÕßÎÞÂÛÓкÎÖÖÐèÇó£¬ÕâÖÖÐèÇó×îÓпÉÄÜÔÚPHP·¢ÐаüÀïÕÒµ½¡£PHP·¢Ðаü°üÀ¨Ö§³Ö¸÷ÖÖÊý¾Ý¿â£¬Í¼ÐÎÎļþ¸ñʽ£¬Ñ¹Ëõ£¬XML¼¼ÊõÀ©Õ¹ÔÚÄÚµÄÐí¶àÀ©Õ¹¡£
À©Õ¹APIµÄÒýÈëʹPHP3È¡µÃÁ˾޴óµÄ½øÕ¹£¬À©Õ¹API»úÖÆʹPHP¿ª·¢ÉçÇøºÜÈÝÒ׵Ŀª·¢³ö¼¸Ê®ÖÖÀ©Õ¹¡£ÏÖÔÚ£¬Á½¸ö°æ±¾¹ýÈ¥ÁË£¬APIÈÔÈ»ºÍPHP3ʱµÄ·Ç³£ÏàËÆ¡£À©Õ¹Ö÷ÒªµÄ˼ÏëÊÇ£º¾¡¿ÉÄܵĴÓÀ©Õ¹±àдÕßÄÇÀïÒþ²ØPHPµÄÄÚ²¿»úÖƺͽű¾ÒýÇæ±¾Éí£¬½ö½öÐèÒª¿ª·¢ÕßÊìϤAPI¡£
ÓÐÁ½¸öÀíÓÉÐèÒª×Ô¼º±àдPHPÀ©Õ¹¡£µÚÒ»¸öÀíÓÉÊÇ£ºPHPÐèÒªÖ§³ÖÒ»ÏîËý»¹Î´Ö§³ÖµÄ¼¼Êõ¡£Õâͨ³£°üÀ¨°ü¹üһЩÏֳɵÄCº¯Êý¿â£¬ÒÔ±ãÌṩPHP½Ó¿Ú¡£ÀýÈ磬Èç¹ûÒ»¸ö½ÐFooBaseµÄÊý¾Ý¿âÒÑÍƳöÊг¡£¬ÄãÐèÒª½¨Á¢Ò»¸öPHPÀ©Õ¹°ïÖúÄã´ÓPHPÀïµ÷ÓÃFooBaseµÄCº¯Êý¿â¡£Õâ¸ö¹¤×÷¿ÉÄܽöÓÉÒ»¸öÈËÍê³É£¬È»ºó±»Õû¸öPHPÉçÇø¹²Ïí£¨Èç¹ûÄãÔ¸ÒâµÄ»°£©¡£µÚ¶þ¸ö²»ÊǺÜÆÕ±éµÄÀíÓÉÊÇ£ºÄãÐèÒª´ÓÐÔÄÜ»ò¹¦ÄܵÄÔ­Òò¿¼ÂÇÀ´±àдһЩÉÌÒµÂß¼­¡£
Èç¹ûÒÔÉϵÄÁ½¸öÀíÓɶ¼ºÍÄãûʲô¹Øϵ£¬Í¬Ê±Äã¸Ð¾õ×Ô¼ºÃ»ÓÐðÏÕ¾«Éñ£¬ÄÇôÄã¿ÉÒÔÌø¹ý±¾Õ¡£
±¾Õ½ÌÄãÈçºÎ±àдÏà¶Ô¼òµ¥µÄPHPÀ©Õ¹£¬Ê¹ÓÃÒ»²¿·ÖÀ©Õ¹APIº¯Êý¡£¶ÔÓÚ´ó¶àÊý´òË㿪·¢×Ô¶¨ÒåPHPÀ©Õ¹¿ª·¢Õ߶øÑÔ£¬Ëüº¬¸ÅÁË×ã¹»µÄ×ÊÁÏ¡£Ñ§Ï°Ò»Ãűà³Ì¿Î³ÌµÄ×îºÃ·½·¨Ö®Ò»¾ÍÊǶ¯ÊÖ×öһЩ¼«Æä¼òµ¥µÄÀý×Ó£¬ÕâЩÀý×ÓÕýÊDZ¾ÕµÄÏßË÷¡£Ò»µ©ÄãÃ÷°×ÁË»ù´¡µÄ¶«Î÷£¬Äã¾Í¿ÉÒÔÔÚ»¥ÁªÍøÉÏͨ¹ýÔĶÁÎĵ²¡¢Ô­´úÂë»ò²Î¼ÓÓʼþÁбíÐÂÎÅ×éÌÖÂÛÀ´·á¸»×Ô¼º¡£Òò´Ë£¬±¾Õ¼¯ÖÐÔÚÈÃÄãÈçºÎ¿ªÊ¼µÄ»°Ìâ¡£ÔÚUNIXÏÂÒ»¸ö½Ðext_skelµÄ½Å±¾±»ÓÃÓÚ½¨Á¢À©Õ¹µÄ¹Ç¼Ü£¬¹Ç¼ÜÐÅÏ¢´ÓÒ»¸öÃèÊöÀ©Õ¹½Ó¿ÚµÄ¶¨ÒåÎļþÖÐÈ¡µÃ¡£Òò´ËÄãÐèÒªÀûÓÃUNIXÀ´½¨Á¢Ò»¸ö¹Ç¼Ü¡£Windows¿ª·¢Õß¿ÉÒÔʹÓÃWindows ext_skel_win32.php´úÌæext_skel¡£
È»¶ø£¬±¾Õ¹ØÓÚÓÃÄ㿪·¢µÄÀ©Õ¹±àÒëPHPµÄÖ¸µ¼½öÉæ¼°UNIX±àÒëϵͳ¡£±¾ÕÂÖÐËùÓеĶÔAPIµÄ½âÊÍÓëUNIXºÍWindowsÏ¿ª·¢µÄÀ©Õ¹¶¼ÓÐÁªÏµ¡£
µ±ÄãÔĶÁÍêÕâÕ£¬ÄãÄÜѧ»áÈçºÎ
☞ ½¨Á¢Ò»¸ö¼òµ¥µÄÉÌÒµÂß¼­À©Õ¹¡£
☞ .½¨Òé¸öCº¯Êý¿âµÄ°ü¹üÀ©Õ¹£¬ÓÈÆäÊÇÓÐЩ±ê×¼CÎļþ²Ù×÷º¯Êý±ÈÈçfopen()
¿ìËÙ¿ªÊ¼
±¾½ÚûÓнéÉܹØÓڽű¾ÒýÇæ»ù±¾¹¹ÔìµÄһЩ֪ʶ£¬¶øÊÇÖ±½Ó½øÈëÀ©Õ¹µÄ±àÂë½²½âÖУ¬Òò´Ë²»Òªµ£ÐÄÄãÎÞ·¨Á¢¿Ì»ñµÃ¶ÔÀ©Õ¹ÕûÌå°ÑÎյĸоõ¡£¼ÙÉèÄãÕýÔÚ¿ª·¢Ò»¸öÍøÕ¾£¬ÐèÒªÒ»¸ö°Ñ×Ö·û´®Öظ´n´ÎµÄº¯Êý¡£ÏÂÃæÊÇÓÃPHPдµÄÀý×Ó£º
function self_concat($string, $n)
{
$result = "";
for ($i = 0; $i < $n; $i++) {
$result .=


Ïà¹ØÎĵµ£º

PHP һЩӦ¸ÃÖªµÀµÄÊÂÇé

PHPÔËÐйý³Ì
¼òµ¥µãµÄ
ä¯ÀÀÆ÷ -> web·þÎñÆ÷ -> php½âÊÍÆ÷ -> mysql·þÎñÆ÷ -> php½âÊÍÆ÷ -> web·þÎñÆ÷ -> ä¯ÀÀÆ÷
´ó¼ÒÎÕ¼¸¸öÊÖ
¸´ÔÓµãµÄ ä¯ÀÀÆ÷ -----------------------------> web·þÎñÆ÷-> php½âÊÍÆ÷ -> mysql·þÎñÆ÷ ….
PHPÔËÐлúÖÆ
2009-10-20 ......

ÊÖ»úºÅÂëÅжÏphpº¯Êý£¬°üº¬15ºÅ¶Î

 <?php

function checkMobile($str)
{
$pattern = "/^(13|15)\d{9}$/";
if (preg_match($pattern,$str))
{
Return true;
}
else
{
Return false;
}
}
$str = checkMobile("15800000001");
......

PHP 6½«È«ÃæÖ§³ÖUnicodeºÍ¹ú¼Ê»¯

 PHPChinaѶ£ºPHPºËÐÄ¿ª·¢ÕßAndrei ZmievskiÔÚ×î½ü¾ÙÐеÄ2009 Zend/PHP»áÒéµÄÖ÷Ìâ·¢ÑÔÖÐÌá³ö£º“ÔÚ½ÓÏÂÀ´µÄPHP6ÖØÒªÉý¼¶ÖУ¬½«Í¨¹ýÖ§³ÖUnicodeÀ´°ïÖú¿ª·¢ÕßÃÇд³öÄܹ»²¿Ê𵽶à¸ö²»Í¬ÓïÑÔÊг¡µÄÓ¦ÓóÌÐò¡£”
¡¡¡¡ÉÌÒµ¿ª·¢ÖÐÈç¹ûÖ»ÊÇ¿ª·¢ÎªÌØÓïÑÔÊг¡µÄÓ¦ÓóÌÐò£¬¾Í»áʧȥÆäËûµØ·½µÄÉÌÒµ»ú»á¡£ÔçÔÚ2006Äê4Ô£ ......

PHP×Ö·û´®½Ì³Ì_trimº¯Êý

 
PHP trim() º¯Êý
¶¨ÒåºÍÓ÷¨
trim() º¯Êý´Ó×Ö·û´®µÄÁ½¶Ëɾ³ý¿Õ°××Ö·ûºÍÆäËûÔ¤¶¨Òå×Ö·û¡£
Óï·¨
trim(str,charlist)
 ²ÎÊý 1 strΪ´ý²Ù×÷µÄ×Ö·û´®£¬²ÎÊý 2 charlist ¿ÉÑ¡£¬Ö¸¶¨ÁËÏëҪȥ³ýµÄÌØÊâ·ûºÅ¡£
Èç¹ûµÚ¶þ¸ö²ÎÊýû¸øÖµ£¬Ô¤Éè»áÈ¥³ýÏÂÁÐÕâЩ×ÖÔª£º 
" " (ASCII 32&nbs ......

PHP mysqlÊÂÎñ´¦Àí »Ø¹ö²Ù×÷

MYSQLÖÐÖ»ÓÐINNODBºÍBDBÀàÐ͵ÄÊý¾Ý±í²ÅÄÜÖ§³ÖÊÂÎñ´¦Àí£¡ÆäËûµÄÀàÐÍÊDz»Ö§³ÖµÄ£¡
$lnk = mysql_connect("localhost", "root", "");
mysql_select_db("test");
mysql_query("BEGIN");
$query = mysql_query("INSERT INTO test VALUES(1, 'yangjun')&quo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ