您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

解读PHP函数explode()的具体使用方法_PHP教程

2025/3/21 16:45:33发布16次查看
目前php函数explode()把字符串分割为数组
explode(separator,string,limit)
separator 必需。规定在哪里分割字符串。
string 必需。要分割的字符串。
limit 可选。规定所返回的数组元素的最大数目。
php函数explode()例子
php $str = hello world. it's a beautiful day.;  print_r (explode( ,$str));  ?> 
输出:
array  (  [0] => hello  [1] => world.  [2] => it's  [3] => a  [4] => beautiful  [5] => day.  ) 
以上代码示例就是php函数explode()的具体使用。
http://www.bkjia.com/phpjc/446303.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/446303.htmltecharticle目前 php函数explode()把字符串分割为数组 explode(separator,string,limit) separator 必需。规定在哪里分割字符串。 string 必需。要分割的字符串。 l...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product