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

phpÖÐsubstrµÄÓ÷¨Ïê½â

phpÖÐsubstrµÄÓ÷¨Ïê½â
php.netÖйØÓÚsubstrµÄ˵Ã÷ºÜ¼òµ¥:
start
If start is non-negative, the returned string will start at the start 'th position in string , counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so forth.
If start is negative, the returned string will start at the start 'th character from the end of string .
length
If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of string ). If string is less than or equal to start characters long, FALSE will be returned.
If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned.
ÏÂÃæ£¬ÎÒÏêϸ×ܽáһϹØÓÚsubstrµÄÏà¹ØÓ÷¨£º
Ô­ÐÍ£ºstring substr ( string $string , int $start [, int $length ] )£¬Ëü¿ÉÒÔÓÃÓÚÔÚÒ»¸ö½Ï³¤µÄ×Ö·û´®ÖвéÕÒÆ¥ÅäµÄ×Ö·û´®»ò×Ö·û¡£$stringΪËùÒª´¦ÀíµÄ×Ö·û´®£¬$startΪ¿ªÊ¼Ñ¡È¡µÄλÖã¬$lengthΪҪѡȡµÄ³¤¶È   
Àý£º
<?php
//´Ë½Ì³ÌÀ´Ô´ÓÚ97xxoo½Ì³ÌÍø£¨[url=http://www.97xxoo.org]www.97xxoo.org[/url]£©
²é¿´ÍêÕûµÄ½Ì³ÌÇëµã£º[url=http://www.97xxoo.org/article/1/2008/20081115345.shtml]http://www.97xxoo.org/article/1/2008/20081115345.shtml[/url]
$rest1 = substr("abcdef", 0, 0); // returns ""
$rest2 = substr("abcdef", 0, 2); // returns "ab"
$rest3 = substr("abcdef", 0, -1); // returns "abcde"
$rest4 = substr("abcdef", 2,0); // returns ""
$rest5 = substr("abcdef", 2,2); // returns "cd"
$rest6 = substr("abcdef", 2, -1); // returns "cde"
$rest7 = substr("abcdef", -2,0); // returns ""
$rest8 = substr("abcdef", -2,2); // returns "ef"
$rest9 = substr("abcdef", -2,-1); // returns "e"
?>
$startÈç¹ûΪ·Ç¸ºÊý£¬ÔÚ×Ö·û´®ÖÐÒÔ0Ϊ¿ªÍ·´Ó×óÏòÓÒ¿ªÊ¼¼ÇÊý£¬[url=http://www.caoliushequ8.cn]²ÝÁñÉçÇø[/url]¼´0´ú±í×Ö·û"a"£¬1Ôò´ú±


Ïà¹ØÎĵµ£º

PHP¿ª·¢³£¼ûÎÊÌâ½â¾öÁбí

PHP¿ª·¢³£¼ûÎÊÌâ½â¾öÁбí
1. ѧϰZend Framework tutorial¹ý³ÌÖеÄÎÊÌâ
£¨1£©Ö´ÐÐ"zf create project zf-tutorial"³öÏÖÈçÏ´íÎó£º
     '"php.exe"' is not recognized as an internal or external command, operable program or batch file.
     ½â¾ö°ì·¨£ºÔ­ÒòÊÇÒòΪphp.ex ......

·þÎñÆ÷½Å±¾ÓëJavascriptµÄÁ½ÖÖ½»»¥·½Ê½(ÒÔphpΪÀý)

·þÎñÆ÷½Å±¾ÓëJavascriptµÄÁ½ÖÖ½»»¥·½Ê½(ÒÔphpΪÀý)
ÒýÓÃ:http://www.knowsky.com/1014.html
ÔÚÍøÒ³ÖÆ×÷¹ý³ÌÖÐÔõÑùÔÚ²»Ë¢ÐÂÒ³ÃæµÄÇé¿öÏÂÊ¹Ç°Ì¨Ò³ÃæºÍºǫ́CGIÒ³Ãæ±£³Ö½»»¥Ò»Ö±ÊǸöÎÊÌâ¡£ÕâÀï½éÉÜÁ½¸ö·½·¨¡£
·½·¨Ò»£ºÍ¨¹ýCookie½»»¥¡£
Ò»¹²ÊÇÈý¸öÎļþ£¬·Ö±ðΪ£ºindex.htm,action.php,main.htm
Ô­ÀíÎªÇ°Ì¨Ò³Ãæmain.htmºÍº ......

phpÓëWebService½»»¥

WebService¼ò½é
Ò»£® ¸ÅÊö
Ŀǰ½øÐÐWeb ServiceͨÐÅÓÐÁ½ÖÖЭÒé±ê×¼£¬Ò»ÖÖÊÇXML-RPC£¬ÁíÍâÒ»ÖÖÊÇSOAP¡£
1.        XML-RPC±È½Ï¼òµ¥£¬³öÏÖʱ¼ä±È½ÏÔ磻
2.        SOAP±È½Ï¸´ÔÓ£¬Ö÷ÒªÊÇһЩÐèÒªÎȶ¨¡¢½¡×³¡¢°²È«²¢ÇÒ¸´ÔÓ½»»¥µÄʱºòʹÓá£
PHPÖм ......

PHPÍøÕ¾¿ª·¢·½°¸£¨¿ª·¢ÐÂÈ˱ضÁ£©


                 PHPÍøÕ¾¿ª·¢·½°¸£¨¿ª·¢ÐÂÈ˱ضÁ£©
Ò»¡¢¿ª·¢³ÉÔ±
a)ÏîÄ¿Ö÷¹Ü
b)Ò³ÃæÃÀ¹¤
c)Ò³Ãæ¿ª·¢
d)·þÎñ¶Ë³ÌÐò¿ª·¢
e)ϵͳÓëÊý¾Ý¹ÜÀí
f)²âÊÔÓë°æ±¾¿ØÖÆ
¶þ¡¢ ÍøÕ¾×鿪·¢¼òÃ÷Á÷³Ì
Èý¡¢ ¿ª·¢¹¤¾ßÓë»·¾³
a)·þÎñÆ÷ÅäÖÃ
i. W ......

WinXP IIS 5.1 PHP 5.3 VC9.0 ÅäÖÃÏê½â

IISÉϰ²×°PHP5.3µÄÍêÕû½Ì³Ì·½·¨(¼°5.3.0ÒÔºó°æ±¾µÄ·½·¨)
ÓÉÓÚPHP5.3µÄÈ«ÐÂÌØÐ§¼°¸Ä½ø£¬Ô­ÓеÄisapi·½Ê½½âÎöPHP
½Å±¾ÒѾ­²»±»Ö§³Ö£¬PHP´Ó5.3
.0ÒÔºóµÄ°æ±¾¿ªÊ¼Ê¹ÓÃ΢ÈíµÄfastcgiģʽ£¬ÕâÊÇÒ»¸ö¸üÏȽøµÄ·½Ê½£¬ÔËÐÐËٶȸü¿ì£¬¸üÎȶ¨£¡
а汾
µÄPHP5.3ͨ¹ýÒÔÍùÀÏ·½·¨ÒѾ­²»ÄÜÔÚIISÉϰ²×°ÁË£¬ÏÖÔÚ¸ø³öÔÚIISÉϰ²×°PHP5.3ÒÔº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ