码迷,mamicode.com
首页 > 其他好文 > 详细

test汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字

时间:2018-12-19 12:53:19      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:[1]   limit   OLE   int   world   script   console   array   缺省   

<script>
console.log('hello world!');
</script>
<?php
$str = '1,2,3,4'; 
//缺省limit
print_r(explode(',',$str)); //Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )
// 零 limit
print_r(explode(',',$str,0)); //Array ( [0] => 1,2,3,4)
// 正的 limit
print_r(explode(',',$str,2)); //Array ( [0] => 1[1] => 2,3,4)
// 负的 limit
print_r(explode(',',$str,-1)); //Array ( [0] => 1[1] => 2[2] => 3)
?>

test汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字汉字

标签:[1]   limit   OLE   int   world   script   console   array   缺省   

原文地址:https://www.cnblogs.com/agegg/p/10141978.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!