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

PHP²ËÄñÇóÖú

<?php
  //¾²Ì¬±äÁ¿
  function myfunc(){
 
  static $mystr;
  $mystr = "¹þ";
 
  echo $mystr."<br>\n";
 
  }
   
  myfunc();
  myfunc();
  myfunc();
  ?>

¸÷λÄÜ°ïÎÒÈ·¶¨ÏÂÊä³öô£¿ÄܸæËßÎÒΪʲôô£¿Ð»Ð»£¡
¹þ
¹þ¹þ
¹þ¹þ¹þ
ÊÇÕâ¸ö½á¹û°É?

¹þ <br>
¹þ <br>
¹þ <br>
 
staticÊǾ²Ì¬±äÁ¿£¬ÊÇÔÚ±àÒëµÄʱºò·ÖÅäÄÚ´æ¿Õ¼ä£¬Ò»°ã±äÁ¿ÊÇÔÚÔËÐÐʱ·ÖÅäÄÚ´æ¿Õ¼ä¡£
²»¹ýÄãÕâ¸öËƺõûʲôÓÃ

PHP code:

¹þ
¹þ
¹þ

×¢£º<br>Òþ²ØÁË




¹þ
¹þ
¹þ

staticÔÚÕâ¸ö³ÌÐòÀïûÓÐÓá£

ºÇºÇ ¿´À´ÊÇ°¡ £¬

µ«ÊÇÎÒ²»ÖªµÀ Ô­Àí£¬Àý×Ó˵ÊÇstaticÓÐÓõģ¬²»ÖªµÀΪʲôûÓÃÁË°¡ 

²»Çå³þphpÔËÐÐÔ­Àí£¬Ï£ÍûË­ÄÜÖ¸½Ì°¡

Ë­Äܽ²ÏÂÔ­Àí°¡ °ÝÍдó¼Ò

ÄãµÄÕâ¸öÎÊÌ⣬ÊÇÄãÀí½â´íÁ˾²Ì¬±äÁ¿µÄÓ÷¨£¡ÄãÏȽ«ÎҵĴúÂëÔËÐÐÊÔÊÔ£º
<?php 
  //¾²Ì¬±äÁ¿ 
function myfunc(){ 
  static $mystr; 
  $mystr .= "¹þ"; 
  echo $mystr."<br>";

myfunc();
myfunc();
myfunc();
?> 

±¸×¢


Ïà¹ØÎÊ´ð£º

ASP³ÌÐòÔ±ÈçºÎתȥ×ö PHP »ò JSP

ASP³ÌÐòÔ±ÈçºÎתȥ×ö PHP »ò JSP
Õâ½áÌùÂÊ....
ASP ×öµÃºÃµÄ»°,תPHP,Äã»á·¢ÏÖ¸ü¼òµ¥.. ¸ü·½±ã...

²î±ð²»´óÂð

PHP²»ÊÇÒªÔÚLinux ÉÏ¿ª·¢µÄÂð WindowsÉÏÓÃÌ×¼þºÃÏñ²»Êµ¼ÊÁ˵㣬¹ãLinuxÕâ¸ö¿²¾ÍÄѹýÈ¥ÁË£¬IISÓ ......

³ÏÕÐÓо­ÑéµÄPHP¹¤³Ìʦ£¨¿É¼æÖ°) - PHP / »ù´¡±à³Ì

1.¾«Í¨ÃæÏò¶ÔÏóµÄÉè¼ÆºÍ¿ª·¢£»
2.ÊìÁ·Ê¹ÓÃPHPÓïÑÔ(5.0+)½øÐÐÊý¾Ý¿â£¬ÍøÂçͨÐÅ£¬Îļþ¶Áд£¬°²È«»úÖƵȿª·¢£»
3.ÊìÁ·Ê¹ÓÃMYSQL(5.0+)Êý¾Ý¿â¿ª·¢£¬°üÀ¨»ù±¾µÄÊý¾Ý¿âÉè¼Æ/ÓÅ»¯/°²È«£¬¸´ÔÓµÄT-SQLÓï¾ä±àд£¬ÊìÁ·±àдMYS ......

Çó´ïÈ˽«Ò»¶ÎPHPת»¯ÎªASP£¬Ð»Ð»£¡ - Web ¿ª·¢ / ASP

´úÂëÈçÏ£º
function uc_get_user($username, $isuid=0) {
$return = call_user_func(UC_API_FUNC, 'user', 'get_user', array('username'=>$username, 'isuid'=>$isuid));
return UC_CONNECT == 'mysql' ......

´øhtml±êÇ©µÄ²éѯÎÊÌâ - PHP / Framework

ÎÒÔÚmySqlÖÐÓÐÒ»×ֶοɴæhtml±êÇ©£¬±ÈÈç˵ÀïÃæÓÐa±êÇ©
µ«ÊÇÎÒÊäÈë²éѯÌõ¼þaµÄʱºò²¢²»Ïë²é³öÕâÌõ¼Ç¼£¬Ò²¾ÍÊÇ˵²éѯµÄʱºò²»¿¼ÂDZêÇ©,Ö»¿¼ÂÇÄÚÈÝ¡£
ÇëÎÊ´ó¼ÒÔõÑù½â¾ö£¿
¿ÉÒÔÔÙŪһ¸ö×Ö¶ÎÀ´±£´æ¹ýÂ˱êÇ©ºóµÄÄÚÈÝ¡£ ......

請½Ì LINUX °²裝 PHP5 - PHP / »ù´¡±à³Ì

ÔÚLINUX裏°²裝 CURL 時,³ö現ÈçÏÂ報錯
checking for SSL support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ