原字符串:苹果,空心菜,香蕉,萝卜,大蒜,牛肉
1.以逗号为分割符分割字符串:
---$arr1[0]的值:苹果
---$arr1[4]的值:大蒜
2.分割时指定limit参数:
---$arr2[0]的值:苹果
---$arr2[2]的值:香蕉,萝卜,大蒜,牛肉
---$arr2[4]的值: