Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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´úÂëת»»µ½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 soap


Ô­ÎÄת×Ô £ºhttp://home.phpchina.com/space.php?uid=49655&do=blog&id=182488
Ò»£® ±Ø±¸ÖªÊ¶
1.wsdl(web·þÎñ±ê¼ÇÓïÑÔ)
       WSDL£¨ÍøÂç·þÎñÃèÊöÓïÑÔ£¬Web Services Description Language£©ÊÇÒ»ÃÅ»ùÓÚ XML
µÄÓïÑÔ£¬ÓÃÓÚÃèÊö Web Services ÒÔ¼°ÈçºÎ¶ÔËüÃǽøÐзÃÎÊ¡£
  ......

PHP·¢ËÍEmail Àà


 ¾­²âÊÔ  ûÓÐÎÊÌâ
<?
class smtp
{
/* Public Variables */
var $smtp_port;
var $time_out;
var $host_name;
var $log_file;
var $relay_host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */
var $sock;
/* Constractor */
function smtp($relay_host = " ......

̽ÌÖPHP SQL×¢ÈëµÄ½â¾ö˼·

˼·:SQLÀᄀ¿ÉÄܵIJÉÓÃÁ½¸öÒýºÅ±ÕºÏ±äÁ¿;¶Ô±äÁ¿ÖеÄÒýºÅתÒå;¶Ô²»ÄܲÉÓÃ2¸öÒýºÅ±ÕºÏµÄ±äÁ¿,ÏÈÔ¤ÏÈÅжϱäÁ¿ÀàÐÍ;  
   
  ·½°¸:  
  1   ËùÓзÇÊýÖµÔËËã(Èç×Ö·û,¼òµ¥ÊýÖµÐ͵ȵÈ)µÄSQL±äÁ¿¶¼¼ÓÒýºÅ;  
  2   ËùÓзÇÊýÖµÔËËãµÄSQL±äÁ¿µÄÖµ¶¼²ÉÓÃmagic_quotes_gpc» ......

½â¾öPHP file_exists º¯Êý²»Ö§³ÖÖÐÎÄÎļþ

½ñÌìÏëʹÓÃÕâÒ»¾äphpÀ´ÅжÏÒ»¸öÎļþÊÇ·ñ´æÔÚ£º echo is_file('/var/downloads/donkey/incoming/[µ±µØÇòֹͣת¶¯].The.Day.The.Earth.Stood.Still.DVDRip.XviD-DMT.avi')?"true":"false"; 
echo is_file('/var/downloads/donkey/incoming/[µ±µØÇòֹͣת¶¯].The.Day.The.Earth.Stood.Still.DVDRip.XviD-DMT.avi')?"t ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ