PHP 源代码:
点击运行
<?php $str = "www.runoob.com"; print_r (explode(".",$str)); ?>
运行结果: