Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ʵÏÖÊÖ»ú¹éÊôµØ²éѯapi½Ó¿Ú

ÓÃPHPʵÏÖÊÖ»ú¹éÊôµØ²éѯapi½Ó¿Ú£º
Ö÷ҪʹÓÃcurlʵÏÖ£¬ÐèÒª¿ªÆôphp¶ÔcurlµÄÖ§³Ö.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Conten ......

PHPº¯Êý

1.1
exit() º¯ÊýÊä³öÒ»ÌõÏûÏ¢£¬²¢Í˳öµ±Ç°½Å±¾¡£
Èç¹û status
ÊÇ×Ö·û´®£¬Ôò¸Ãº¯Êý»áÔÚÍ˳öÇ°Êä³ö×Ö·û´®¡£
Èç¹û status
ÊÇÕûÊý£¬Õâ¸öÖµ»á±»ÓÃ×÷Í˳ö״̬¡£Í˳ö״̬µÄÖµÔÚ 0 ÖÁ 254 Ö®¼ä¡£Í˳ö״̬ 255 ÓÉ PHP ±£Áô£¬²»»á±»Ê¹Óá£×´Ì¬ 0 ÓÃÓڳɹ¦µØÖÕÖ¹³ÌÐò¡£
1.2
301 Moved Permanently ¿Í»§ÇëÇóµÄÎĵµÔÚÆäËûµØ·½£¬ ......

PHP ¸ßЧÂÊд·¨ PHP³õѧÕ߱ؿ´

1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿¶¨Òå³Éstatic£¬ËüµÄËٶȻáÌáÉý½«½ü4±¶¡£
2¡¢$row['id'] µÄËÙ¶ÈÊÇ$row[id]µÄ7±¶¡£
3¡¢echo ±È print ¿ì£¬²¢ÇÒʹÓÃechoµÄ¶àÖزÎÊý(Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã)´úÌæ×Ö·û´®Á¬½Ó£¬±ÈÈçecho $str1,$str2¡£
4¡¢×îºÃʹÓÃForeachÖ´ÐÐÑ­»·£¬ÔÚÖ´ÐÐforÑ­»·Ö®Ç°È·¶¨×î´óÑ­»·Êý£¬²»ÒªÃ¿Ñ­»·Ò»´ ......

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ºÅ