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>"; } ?> 截取去掉最後/第一個字
相關文章
相關標籤/搜索