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

ÅжÏphp±äÁ¿ÊÇ·ñ¶¨Ò壬ÊÇ·ñΪ¿Õ

isset() ¡¾1¡¿
Returns TRUE if var
exists and has value other
than NULL, FALSE otherwise.
ÊäÈë¿ÉÒÔÊǶà¸ö±äÁ¿£¬Ö»ÓÐËùÓеıäÁ¿ÎªÕæµÄʱºò£¬·µ»ØÕæ
empty()¡¾2¡¿
Returns FALSE if var
has a non-empty
and non-zero value.

The following things are considered to be empty:

"" (an empty string)
0 (0 as an integer)
"0" (0 as a string)
NULL
FALSE
array() (an empty array)
var $var; (a variable declared, but without a
value in a class)
ÊäÈëÖ»ÄÜÊÇÒ»¸ö±äÁ¿
is_null() ¡¾3¡¿
Returns TRUE if var is
null , FALSE
otherwise.
   A variable is considered to be null if:

it has been assigned the constant NULL.

it has not been set to any value yet.

it has been unset().    
ʹÓà PHP º¯Êý¶Ô±äÁ¿ $x ½øÐбȽÏ
±í´ïʽgettype()empty()is_null()isset()if($x) Boolean
$x = "";
string
TRUE
FALSE
TRUE
FALSE
$x = null;
NULL
TRUE
TRUE
FALSE
FALSE
var $x;
NULL
TRUE
TRUE
FALSE
FALSE
$x is undefined
NULL
TRUE
TRUE
FALSE
FALSE
$x = array();
array
TRUE
FALSE
TRUE
FALSE
$x = false;
boolean
TRUE
FALSE
TRUE
FALSE
$x = true;
boolean
FALSE
FALSE
TRUE
TRUE
$x = 1;
integer
FALSE
FALSE
TRUE
TRUE
$x = 42;
integer
FALSE
FALSE
TRUE
TRUE
$x = 0;
integer
TRUE
FALSE
TRUE
FALSE
$x = -1;
integer
FALSE
FALSE
TRUE
TRUE
$x = "1";
string
FALSE
FALSE
TRUE
TRUE
$x = "0";
string
TRUE
FALSE
TRUE
FALSE
$x = "-1";
string
FALSE
FALSE
TRUE
TRUE
$x = "php";
string
FALSE
FALSE
TRUE
TRUE
$x = "true";
string
FALSE
FALSE
TRUE
TRUE
$x = "false";
string
FALSE
FALSE
TRUE
TRUE
£¨ÉϱíûÓÐÕÒµ½Ô­Ê¼À´Ô´£¬Ë­ÖªµÀÇë¸æËßÎÒ£©
Èç¹û±äÁ¿ÊÇÒ»¸öobject¸ÃÈçºÎÄØ£¿
±í´ïʽgettype()empty()is_null()isset()if($x) Boolean
$x = new object() 
object
FALSE
FALSE
TRUE
TRUE
²Î¿¼£º
¡¾1¡¿http://php.net/manual/en/function.isset.php
¡¾2¡¿http://www.php.net/manual/en/function.empty.php
¡¾3¡¿http://www.php.net/manual/en/function.is-null.php


Ïà¹ØÎĵµ£º

phpÈý°å¸«——ÇëÇóºÍ»á»°

 phpÊÇÒ»Ãżòµ¥¶øÓÖÇ¿´óµÄÓïÑÔ£¬ËùÓеÄphpÊé¼®¶¼»áÕâÑù˵£¨Ë­ÈÃÎÒ×î°®¿´Ç°ÑÔÄØ£©¡£Èç¹û½«.net¡¢jsp±È×÷µ¶½££¬ÄÇôphp¾ÍÊǸ«Í·¡£Ñ§»á³ÌÒ§½ðµÄÈý°å¸«£¬Ëä²»ÄÜÌìÏÂÎ޵У¬È´¿ÉÒÔ°²ÉíÁ¢Ãü¡£
½ñÌìÔÛÃÇѧϰµÚÒ»°å¸«£¬ÍøÕ¾½»»¥µÄ»ù´¡£ºÇëÇóºÍ»á»°¡£
PHPÖпͻ§¶ËÓë·þÎñÆ÷ÐÅÏ¢µÄ´«µÝÊÇÒÀ¿¿ÇëÇóÓ¦´ðºÍ»á»°±£³ÖʵÏֵ쬶øPHP¶ÔÓÚ ......

½«PHP´úÂëת»»µ½Scala´úÂë

ÓÐÒ»¸ö¿ªÔ´ÏîÄ¿Ìṩ½«PHP´úÂëת»»³ÉScala´úÂëµÄ¹¦ÄÜ£¬¸ÃÏîÄ¿µÄÍøÕ¾ÊÇ http://code.google.com/p/php-to-scala-migration-helper/¡£
In short, php-to-scala converts PHP code to clean, maintainable Scala source code. To cut to the chase, see ConversionExamples, or the feature-by-feature DesignD ......

PHP CURLÏê½â

ÉùÃ÷£º²¹³ä·­ÒëÁËÔ­ÌûÖм¸´¦Î´·­Òë´¦¡£
---------------------------------------------------- תÌû¿ªÊ¼ -------------------------------------------------------
PHPÖеÄCURLº¯Êý¿â£¨Client URL Library Function£© 
curl_close - ¹Ø±ÕÒ»¸öcurl»á»° 
curl_copy_handle - ¿½±´Ò»¸öcurlÁ¬½Ó×ÊÔ´µÄËùÓÐÄÚÈݺ ......

crontabÀïÔËÐÐphpÎÞ·¨Á¬½Óµ½Êý¾Ý¿â

ÎÒÔÚmy.cnfÖÐ×¢Ê͵ôlog-bin=mysql-binºÍbinlog_format=mixedºó,ÎÞ·¨Æô¶¯mysql
ÎÒÖØÆôvpsºó,ÄÜÆô¶¯mysqlÀ²
ÓÃweb·½Ê½ÔËÐÐphp,Õý³£
µ«ÊÇÔÚcrontabÀïÖ´ÐеÄphp½Å±¾,Ìáʾ: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ²é¿´µ½/var/lib/mysql/Ŀ¼ÏÂ,ÓÐÒ»¸ömysql.s ......

phpѧϰÐĵÃ(ÊʺÏphp³õѧÕß)


À´Ô´£º ·¢²¼Ê±¼ä£º2009-09-18 ·¢²¼ÈË£º ä¯ÀÀ£º30È˴Π ×ÖÌ壺[´ó ÖРС]  
 ¡¾1¡¿Ò³ÃæÖ®¼äÎÞ·¨´«µÝ±äÁ¿ get,post,sessionÔÚ×îеÄphp°æ±¾ÖÐ×Ô¶¯È«¾Ö±äÁ¿Êǹرյģ¬ËùÒÔÒª´ÓÉÏÒ»Ò³ÃæÈ¡µÃÌá½»¹ýÀ´µÃ±äÁ¿ÒªÊ¹ÓÃ$_GET['foo'],$_POST['foo'],$_SESSION['foo']À´µÃµ½
µ±È»Ò²¿ÉÒÔÐÞ¸Ä×Ô¶¯È«¾Ö±äÁ¿Îª¿ª(ph ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ