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

40¸ö¼¼ÇÉÓÅ»¯ÄúµÄPHP´úÂë

  ·¢²¼Ê±¼ä:2009-11-17 11:15 ¡¡×÷Õß: PHPChina ¡¡ÐÅÏ¢À´Ô´: PHPchina¡¡ ·¢±íÆÀÂÛ
1.Èç¹ûÒ»¸ö·½·¨Äܱ»¾²Ì¬£¬ÄǾÍÉùÃ÷ËûΪ¾²Ì¬µÄ£¬ËٶȿÉÌá¸ß1/4;
2.echoµÄЧÂʸßÓÚprint,ÒòΪechoûÓзµ»ØÖµ£¬print·µ»ØÒ»¸öÕûÐÍ;
3.ÔÚÑ­»·Ö®Ç°ÉèÖÃÑ­»·µÄ×î´ó´ÎÊý£¬¶ø·ÇÔÚÔÚÑ­»·ÖÐ;
4.Ïú»Ù±äÁ¿È¥ÊÍ·ÅÄڴ棬ÌرðÊÇ´óµÄÊý×é;
5.±ÜÃâʹÓÃÏñ__get, __set, __autoloadµÈħÊõ·½·¨;
6.requiere_once()±È½ÏºÄ×ÊÔ´;
7.ÔÚincludesºÍrequiresÖÐʹÓþø¶Ô·¾¶£¬ÕâÑùÔÚ·ÖÎö·¾¶»¨µÄʱ¼ä¸üÉÙ;
8.Èç¹ûÄãÐèÒªµÃsexinsexµ½½Å±¾Ö´ÐÐʱµÄʱ¼ä£¬$_SERVER['REQUSET_TIME']ÓÅÓÚtime();
9.ÄÜʹÓÃ×Ö·û´¦Àíº¯ÊýµÄ£¬¾¡Á¿ÓÃËûÃÇ£¬ÒòΪЧÂʸßÓÚÕýÔò;//php100.com
10.str_replace×Ö·ûÌæ»»±ÈÕýÔòÌæ»»preg_replace¿ì£¬µ«strtr±Èstr_replaceÓÖ¿ì1/4;
11.Èç¹ûÒ»¸öº¯Êý¼ÈÄܽÓÊÜÊý×éÓÖÄܽÓÊܼòµ¥×Ö·û×öΪ²ÎÊý£¬ÀýÈç×Ö·ûÌæ»»£¬²¢ÇÒ²ÎÊýÁÐ±í²»ÊÇÌ«³¤£¬¿ÉÒÔ¿¼ÂǶàÓÃһЩ¼ò½àµÄÌæ»»Óï¾ä£¬Ò»´ÎÖ»Ìæ»»Ò»¸ö×Ö·û£¬¶ø²»ÊǽÓÊÜÊý×é×öΪ²éÕÒºÍÌæ»»²ÎÊý¡£´óÊ»¯Ð¡£¬1+1>2;
12.ÓÃ@ÑڸǴíÎó»á½µµÍ½Å±¾ÔËÐÐËÙ¶È;
13.$row['id']±È$row[id]Ëٶȿì7±¶£¬½¨ÒéÑø³ÉÊý×é¼ü¼ÓÒýºÅµÄÏ°¹ß;
14.´íÎóÐÅÏ¢ºÜÓÐÓÃ;
15.ÔÚÑ­»·Àï±ðÓú¯Êý£¬ÀýÈçFor($x=0; $x < count($array); $x), count()º¯ÊýÔÚÍâÃæÏȼÆËã;
16.ÔÚ·½·¨ÀィÁ¢¾Ö²¿±äÁ¿ËÙ¶È×î¿ì£¬97xxoo¼¸ºõºÍÔÚ·½·¨Àïµ÷Óþֲ¿±äÁ¿Ò»Ñù¿ì;
17.½¨Á¢Ò»¸öÈ«¾Ö±äÁ¿Òª±È¾Ö²¿±äÁ¿ÒªÂý2±¶;
18.½¨Á¢Ò»¸ö¶ÔÏóÊôÐÔ(ÀàÀïÃæµÄ±äÁ¿)ÀýÈç($this->prop++)±È¾Ö²¿±äÁ¿ÒªÂý3±¶;
19.½¨Á¢Ò»¸öδÉùÃ÷µÄ¾Ö²¿±äÁ¿Òª±ÈÒ»¸ö³õʼ»¯µÄ¾Ö²¿±äÁ¿Âý9-10±¶;
20.ÉùÃ÷Ò»¸öδ±»ÈκÎÒ»¸öº¯ÊýʹÓùýµÄÈ«¾Ö±äÁ¿Ò²»áʹÐÔÄܽµµÍ(ºÍÉùÃ÷ÏàͬÊýÁ¿µÄ¾Ö²¿±äÁ¿Ò»Ñù)£¬PHP¿ÉÄÜÈ¥¼ì²éÕâ¸öÈ«¾Ö±äÁ¿ÊÇ·ñ´æÔÚ;
21.·½·¨µÄÐÔÄܺÍÔÚÒ»¸öÀàÀïÃ涨ÒåµÄ·½·¨µÄÊýĿûÓйØϵ£¬ÒòΪÎÒÌí¼Ó10¸ö»ò¶à¸ö·½·¨µ½²âÊÔµÄÀàÀïÃæ(ÕâЩ·½·¨ÔÚ²âÊÔ·½·¨µÄÇ°ºó)ºóÐÔÄÜûʲô²îÒì;
22.ÔÚ×ÓÀàÀï·½·¨µÄÐÔÄÜÓÅÓÚÔÚ»ùÀàÖÐ;//PHP100ÖÐÎÄÍø
23.Ö»µ÷ÓÃÒ»¸ö²ÎÊý²¢ÇÒº¯ÊýÌåΪ¿ÕµÄº¯ÊýÔËÐл¨·ÑµÄʱ¼äµÈÓÚ7-8´Î$localvar++ÔËË㣬¶øÒ»¸öÀàËƵķ½·¨(ÀàÀïµÄº¯Êý)ÔËÐеÈÓÚ´óÔ¼15´Î$localvar++ÔËËã;
24.Surrounding your string by ‘ instead of ” will make things interpret a little faster since php looks for variables inside “…” but not inside ‘…’. Of course you can only do this wh


Ïà¹ØÎĵµ£º

php^

  PHPÊÇÒ»ÖÖÓÃÓÚ´´½¨¶¯Ì¬WEBÒ³ÃæµÄ·þÎñ¶Ë½Å±¾ÓïÑÔ¡£ÈçͬASPºÍColdFusion£¬Óû§¿ÉÒÔ»ìºÏʹÓÃPHPºÍHTML±àдWEBÒ³Ã棬µ±·ÃÎÊÕßä¯ÀÀµ½¸ÃÒ³Ãæʱ£¬·þÎñ¶Ë»áÊ×ÏȶÔÒ³ÃæÖеÄPHPÃüÁî½øÐд¦Àí£¬È»ºó°Ñ´¦ÀíºóµÄ½á¹ûÁ¬Í¬HTMLÄÚÈÝÒ»Æð´«Ë͵½·ÃÎʶ˵Ää¯ÀÀÆ÷¡£µ«ÊÇÓëASP»òColdFusion²»Í¬£¬PHPÊÇÒ»ÖÖÔ´´úÂ뿪·Å³ÌÐò£¬ÓµÓкܺõĿçƽ̨¼ ......

PHPÁ¬½ÓOracle²¢·ÖÒ³·ÃÎÊ(OCI°æ)

ËäÈ»±¾ÈËûÓÐÑéÖ¤¹ý,²»¹ý¾Ý˵ͨ¹ýADODB·ÃÎÊOracle¶ÔÐÔÄÜÓ°ÏìºÜС.¶øÇÒADODB±ÈOCI8Ò²Òª·½±ãºÜ¶à,±Ï¾¹Ðí¶à¶«Î÷¶¼Ôٴηâ×°¹ý.²»¹ý²»¹ÜÔõô˵ÕⶼÔÚÖмäÓÖ¼ÓÉÏÁËÒ»²ã,ÀíÂÛÉÏÀ´Ëµ³öÏÖÎÊÌâµÄ¼¸Âʺͽâ¾öÎÊÌâµÄÄѶȶ¼±ä´óÁË.¶øOracleÓÖ¾­³£ÓÃÔÚ²»ÄÜËæ±ã³öÎÊÌâµÄ»·¾³,ËùÒÔÏë±ØÏëÒªÖ±½ÓʹÓÃOCIµÄÇé¿öÒ²²»ÉÙ.ÒÔϾÍÊÇÎÒµÄÀý×Ó:
<?p ......

¼ÆËã×î½üÒ»ÖܵÄphp³ÌÐò

 
$curdate= date('N'); 
switch ($curdate)
{
case 1:
$diff='0,1,2,3,4,5,6';
break;
case 2:
$diff='-1,0,1,2,3,4,5';
break;
case 3:
$diff='-2,-1,0,1,2,3,4';
break;
case 4:
$diff='-3,-2,-1,0,1,2,3';
break;
case 5:
$diff='-4,-3,-2,-1,0,1,2';
break;
......

ajax¡¢jquery sortable¡¢phpʵÏÖÄܼÇÒäµÄ¶¯Ì¬¹¤¾ßÀ¸

×î½üÔÚ¸ºÔð×öÍøÕ¾µÄºǫ́¹ÜÀí²¿·Ö£¬¾õµÃjqueryµÄsortable×ö¶¯Ì¬¹¤¾ßÀ¸ºÜʵÓÃ,µ«ÍøÉϺܶ඼ֻ½éÉÜajaxºÍsortableÒ»Æð£¬Ã»ÓкÍdatabase½áºÏ×ÅÓã¬Î¨Ò»¿´µ½µÄ¾ÍÊÇÓÃcookie£¬Èç¹ûÓÐÅóÓÑϲ»¶ÓÃcookieµÄ£¬¿ÉÒÔÀ´ÕâÀï¿´¿´¡£ ÎÒ¸öÈ˲»Ï²»¶cookie£¬cookieÓÐʱ¼äµÄÏÞÖÆ£¬¶øÇҺöàÈËÏÖÔÚ¶¼½ûÖ¹cookieµÄʹÓÃÁË¡£¾Í×Ô¼º±àÁ˸öÂ룬ÓÃphp¡¢j ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ