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

PHP ·µ»ØÖµ

Àý×Ó. return() º¯ÊýµÄÓ÷¨
<?php
function square ($num)
{
    return $num * $num;
}
echo square (4);   // outputs '16'.
?>
º¯Êý²»ÄÜ·µ»Ø¶à¸öÖµ£¬µ«ÎªÁË»ñµÃ¼òµ¥µÄ½á¹û£¬¿ÉÒÔ·µ»ØÒ»¸öÁÐ±í¡£
Àý×Ó. ·µ»ØÒ»¸öÊý×éÒԵõ½¶à¸ö·µ»ØÖµ
<?php
function small_numbers()
{
    return array (0, 1, 2);
}
list ($zero, $one, $two) = small_numbers();
?>
´Óº¯Êý·µ»ØÒ»¸öÒýÓã¬Äã±ØÐëÔÚº¯ÊýÉùÃ÷ºÍÖ¸ÅÉ·µ»ØÖµ¸øÒ»¸ö±äÁ¿Ê±¶¼Ê¹ÓÃÒýÓòÙ×÷·û & £º
Àý×Ó. Óɺ¯Êý·µ»ØÒ»¸öÒýÓÃ
<?php
function &returns_reference()
{
    return $someref;
}
$newref =& returns_reference();
?>


Ïà¹ØÎĵµ£º

PHP ²¢·¢¿ØÖÆÑùÀý£¨×ª£©

ÖµµÃ²Î¿¼Ò»Ï¸óÌÐòÉè¼ÆµÄ˼·£º
[ÎÄÕÂ×÷ÕߣºÕÅÑç ±¾Îİ汾£ºv1.0 ×îºóÐ޸ģº2007.11.16 ×ªÔØÇë×¢Ã÷³ö´¦£ºhttp://blog.s135.com]
¡¡¡¡×î½üÓöµ½Ò»¸öÎÊÌ⣬LinuxϵÄPHPÃüÁîÐгÌÐò×÷ÎªÊØ»¤½ø³Ì£¬ÐèÒª´Ó¶ÓÁÐÎļþÖжÁÒ»ÐÐÊý¾Ý£¬Í¨¹ýTCPЭÒé·¢Ë͸øÍâµØµÄ½ÓÊÕ·þÎñÆ÷£¬ÔÙ¶ÁÏÂÒ»ÐÐÊý¾Ý£¬ÔÙ·¢ËÍ¡£µ±±¾µØÓëÍâµØµÄÍøÂç×´¿ö²»ºÃʱ£¬ÓÐ ......

PHPÖÐthis self parentÈý¸öÓ¦ÓÃ˵Ã÷

  this,self,parentÈý¸ö¹Ø¼ü×ÖÖ®¼äµÄÇø±ð¡£´Ó×ÖÃæÉϱȽϺÃÀí½â,·Ö±ðÊÇÖ¸Õâ¡¢×Ô¼º¡¢¸¸Çס£ÎÒÃÇÏȽ¨Á¢¼¸¸ö¸ÅÄî,ÕâÈý¸ö¹Ø¼ü×Ö·Ö±ðÊÇÓÃÔÚʲôµØ·½ÄØ?ÎÒÃdzõ²½½âÊÍÒ»ÏÂ,thisÊÇÖ¸Ïòµ±Ç°¶ÔÏóµÄÖ¸Õë(¹ÃÇÒÓÃCÀïÃæµÄÖ¸ÕëÀ´¿´°É),selfÊÇÖ¸Ïòµ±Ç°ÀàµÄÖ¸Õë,parentÊÇÖ¸Ïò¸¸ÀàµÄÖ¸Õë¡£ÎÒÃÇÕâÀïÆµ·±Ê¹ÓÃÖ¸ÕëÀ´ÃèÊö£¬ÊÇÒòΪûÓиüºÃµÄÓï ......

ÓÃPHPʵÏÖ·ÉÐÅapi½Ó¿Ú·¢·ÉÐŶÌÐÅ

²»¹ýÕâ¸ö²»ÄܺͷÉÐſͻ§¶ËͬʱµÇ¼£¬¶þÕßÖ»ÄܵÇÒ»¸ö£¬Ö»Òª´úÂëÔÚdwÀï´ò¿ª£¬¿Í»§¶Ë¾ÍµôÁ˺ǺÇ~~~
<?php
/*
* Created on 2010-4-18
* MiaoPengFei
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$data["username"] = ;//ÕâÀïÌ ......

GyPSii API PHPÇëÇóʾÀý

¸ù¾ÝGyPSii APIÌṩµÄ²Ù×÷ÀàºÍ·½·¨£¬·¢ÏÖÇëÇó»áʧ°Ü£¬·µ»ØµÄÊÇÒ»¸öbed request¡£Ô­ÒòÆäʵºÜ¼òµ¥£¬µ«Ò»Ö±Ã»ÓÐÕÒµ½£¬×îÖÕÔ­ÒòÊǶԷ½ÌṩµÄhostÊÇ´íÎóµÄ£¬Ã»ÌìÀí¡£
¶Ô·½ÌṩµÄhostºÍuri£º
host:http://dev3.gypsii.com/gypsii
uri:http://dev3.gypsii.com/gypsii/xmlservice.cgi
Õâ¸öhost¾ÍÊÇ´íµÄ£¬Ó¦¸ÃÊÇ£ºdev3.gypsii.co ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ