时间:2021-07-01 10:21:17 帮助过:63人阅读
如:是其他字符类型,需要用到函数转化:
<?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获取从百度、谷歌等搜索引擎进入网站关键词的方法_PHP
下一篇 >
php实现将上传word文件转为html的方法_PHP
记住我的登录 忘记密码?
登录
我已阅读用户协议及版权声明
注册