标签:[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