84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
请问用哪个函数将下面的字符串截取后面两项并转换为数组?
$week = "Monday,Tuesday,Wednesay,Thursday,Friday,Saturday,Sunday";
?>
闭关修行中......
$result = array_splice( explode(',', $week), -2 ); var_dump($result);
先分割成数组 然后用array_splice取数组的后两个元素
split(分割符):根据分割字符,把字符串拆分成数组
先分割成数组 然后用array_splice取数组的后两个元素
split(分割符):根据分割字符,把字符串拆分成数组