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,Äã»á·¢ÏÖ¸ü¼òµ¥.. ¸ü·½±ã...
²î±ð²»´óÂð
PHP²»ÊÇÒªÔÚLinux ÉÏ¿ª·¢µÄÂð WindowsÉÏÓÃÌ×¼þºÃÏñ²»Êµ¼ÊÁ˵㣬¹ãLinuxÕâ¸ö¿²¾ÍÄѹýÈ¥ÁË£¬IISÓ ......
1.¾«Í¨ÃæÏò¶ÔÏóµÄÉè¼ÆºÍ¿ª·¢£»
2.ÊìÁ·Ê¹ÓÃPHPÓïÑÔ(5.0+)½øÐÐÊý¾Ý¿â£¬ÍøÂçͨÐÅ£¬Îļþ¶Áд£¬°²È«»úÖƵȿª·¢£»
3.ÊìÁ·Ê¹ÓÃMYSQL(5.0+)Êý¾Ý¿â¿ª·¢£¬°üÀ¨»ù±¾µÄÊý¾Ý¿âÉè¼Æ/ÓÅ»¯/°²È«£¬¸´ÔÓµÄT-SQLÓï¾ä±àд£¬ÊìÁ·±àдMYS ......
´úÂëÈçÏ£º
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' ......
ÎÒÔÚmySqlÖÐÓÐÒ»×ֶοɴæhtml±êÇ©£¬±ÈÈç˵ÀïÃæÓÐa±êÇ©
µ«ÊÇÎÒÊäÈë²éѯÌõ¼þaµÄʱºò²¢²»Ïë²é³öÕâÌõ¼Ç¼£¬Ò²¾ÍÊÇ˵²éѯµÄʱºò²»¿¼ÂDZêÇ©,Ö»¿¼ÂÇÄÚÈÝ¡£
ÇëÎÊ´ó¼ÒÔõÑù½â¾ö£¿
¿ÉÒÔÔÙŪһ¸ö×Ö¶ÎÀ´±£´æ¹ýÂ˱êÇ©ºóµÄÄÚÈÝ¡£ ......
ÔÚLINUX裏°²裝 CURL 時,³ö現ÈçÏÂ報錯
checking for SSL support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something ......