asp函数split()对应php函数explode()

  <?php //利用 explode 函数分割字符串到数组 $source = "hello1,hello2,hello3,hello4,hello5";//按逗号分离字符串 $hello = explode(',',$source); for($i=0;$i<count($hello);$i++){ echo $hello[$i];echo "</br>"; } ?> 截取去掉最后/第一个字
相关文章
相关标签/搜索