时间:2021-07-01 10:21:17 帮助过:6人阅读
如:是其他字符类型,需要用到函数转化:
<?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模板引擎smarty详细介绍_php实例
下一篇 >
php实现window平台的checkdnsrr函数_php实例
记住我的登录 忘记密码?
登录
我已阅读用户协议及版权声明
注册