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

PHPÖÐforeachÑ­»·±éÀúÊý×é(3)

<?php
 
  //ÉùÃ÷Êý×é±äÁ¿
  $arr = array(val1 =>'ÕÅÈý',val2 => 'ÀîËÄ',val3 => 'ÍõÎå',val4 => 'ÀîÃ÷',val5 => 'ÖÜÑàÄÝ');
 
  //foreachÑ­»·±éÀúÊý×é
  foreach($arr as $key => $value){
   //×¢Òâ“$value”ºó±ØÐëÒªÒ»¸ö¿Õ¸ñ£¬·ñÔòÊä³öµÄ½á¹û²»ÕýÈ·
   echo "Öµ$value µÄ¼üÃûΪ$key<br/>";
  }
?>


Ïà¹ØÎĵµ£º

PHPº¯ÊýÖ®setcookie()


setcookie("cookiename","cookievalue",time()+3600,"/path",".php100.com",1);
cookiename:
ÊÇcookieµÄÃû×Ö£¬¿ÉÒÔͨ¹ýcookienameµ÷ÓôËcookie£¬$_COOKIE["cookiename"]£»
cookievalue:
ÊÇcookieµÄ³õʼֵ£»
time():
·µ»ØUNIXʱ¼ä´Á£¬¼´´Ó1970Äê1ÔÂ1ÈÕ£¨UTC/GMT ......

phpÖÐmb_convert_encoding ºÍ iconv µÄÇø±ð

mb_convert_encodingÕâ¸öº¯ÊýÊÇÓÃÀ´×ª»»±àÂëµÄ¡£Ô­À´Ò»Ö±¶Ô³ÌÐò±àÂëÕâÒ»¸ÅÄî²»Àí½â£¬²»¹ýÏÖÔÚºÃÏñÓе㿪ÇÏÁË¡£
²»¹ýÓ¢ÎÄÒ»°ã²»»á´æÔÚ±àÂëÎÊÌ⣬ֻÓÐÖÐÎÄÊý¾Ý²Å»áÓÐÕâ¸öÎÊÌâ¡£±ÈÈçÄãÓÃZend Studio»òEditplusд³ÌÐòʱ£¬ÓõÄÊÇgbk±àÂ룬Èç¹ûÊý¾ÝÐèÒªÈëÊý¾Ý¿â£¬¶øÊý¾Ý¿âµÄ±àÂëΪutf8ʱ£¬Õâʱ¾ÍÒª°ÑÊý¾Ý½øÐбàÂëת»»£¬²»È»½øµ½Ê ......

php ¸ÅÄî×ܽá

1 ÄÚ´æÒç³ö
µ±³ÌÐòÔËÐеÄʱºò..¶¨ÒåÁ˵Ĵ¢´æ±äÁ¿¾Í»á±»ÄÚ´æ·ÖÅä¿Õ¼ä..¿Õ¼ä´óСÓɱàдÕ߶¨ÒåµÄʱºò¹æ¶¨µÄ...µ«..³ÌÐòÔËÐÐÁË..È´ÐèÒªµÄ¿Õ¼ä±È¶¨ÒåµÄ´ó..ÕâÑù¾ÍÒç³öÁË.
Ò»¸ö±È½Ï¼òµ¥µÄÅжÏÄÚ´æй©µÄ·½·¨£¬¿´Ò»ÏÂÄãµÄ³ÌÐòËùÕ¼ÓõÄprivate bytesÊǶàÉÙ£¬Èç¹ûÒ»Ö±Ôö¼Ó£¬Ò²¾Í˵Ã÷ÓÐÄÚ´æй©¡£
½â¾ö·½·¨
http://blog.zol.com.c ......

PHP Àà µÄʹÓÃ

Óû§¶¨ÒåµÄÀ࣬ҲÊÇѧºÃ PHP Ëù±Ø±¸µÄÌõ¼þÖ®Ò»¡£¶ø PHP µÄÀ࣬ºÍÆäËüµÄÃæÏò¶ÔÏóÓïÑԱȽÏÆðÀ´£¬»¹ËãÂùµ¥´¿µÄ¡£PHP Ö»ÓÐÀà±ð (class)¡¢·½·¨ (method)¡¢ÊôÐÔ¡¢ÒÔ¼°µ¥Ò»¼Ì³Ð (extensions) µÈ¡£¶Ô²»Ï°¹ßʹÓà C++¡¢Java¡¢Delphi µÈÃæÏò¶ÔÏóÓïÑÔÀ´¿ª·¢³ÌÐòµÄÓû§£¬²»·ÁÏÈÔĶÁÒ»ÏÂÓйØÃæÏò¶ÔÏó¸ÅÄîµÄÊ飬ÏàÐÅ¿ÉÒÔ´øÀ´Ðí¶àµÄÊÕ»ñ¡£
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ