preg_split

最后更新于:2022-04-02 02:29:36

[TOC] ## preg_split ``` //使用逗号或空格(包含" ", \r, \t, \n, \f)分隔短语 $keywords = preg_split("/[\s,]+/", "hypertext language, programming"); print_r($keywords); // 输出 Array ( [0] => hypertext [1] => language [2] => programming ) ```
';