[英]Split String by Multiple Delimiters in PHP
Can strings be parsed into an array based on multiple delimiters? 可以根据多个分隔符将字符串解析为数组吗? as explained in the code:
如代码中所述:
$str ="a,b c,d;e f";
//What i want is to convert this string into array
//using the delimiters space, comma, semicolon
strtok - > http://php.net/manual/en/function.strtok.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.