|
substr(str,start,length);
例:substr('php is very good language',4,5);
輸出為 is ve;
當start>str的長度,則返回為();
substr('php is very good language',26,5);
substr('php is very good language',4);
輸出為 (空白)
輸出為is v (表明start和langth都為4)
當start為負值,則從str末尾出開始讀起(*這時是從-1開始讀,而不是從0開始),
substr('php is very good language',-4,5);
輸出為uage
當length為負值時,length代表的是從末尾開始讀,截取str的結束位置。
substr('php is very good language',4,-5);
輸出為is very good lan
explode()把函數字符串分割為數組;
strrev()把函數字符串
setlocalhost(content location)設置本地環境.content ,指定需要設置的場景信息常量有(
LC_ALL 主站蜘蛛池模板: 满洲里市| 新宁县| 宝山区| 扎囊县| 平南县| 论坛| 清流县| 冕宁县| 新巴尔虎左旗| 务川| 西峡县| 嘉定区| 水城县| 普陀区| 黎平县| 绍兴县| 株洲县| 乌兰县| 昌吉市| 安吉县| 宜春市| 通江县| 名山县| 镇坪县| 大新县| 大关县| 色达县| 常山县| 库伦旗| 丰顺县| 柘荣县| 桦川县| 固原市| 宝丰县| 专栏| 嘉祥县| 邻水| 紫阳县| 扎囊县| 嘉义县| 伊宁县|