Php separates strings into string arrays by uppercase letters. Alert (createTechBook. split ((? [A-Z]) Thanks. copy the code as follows :? Php $ strabcDefGhi; * preg_match_all ([a-zA-Z] {1} [a-z] *)? [^ A-Z], $ str, $ array); * $ arraypreg _ alert ("createTechBook". split (/(? = [A-Z])/) Thanks
The code is as follows:
$ Str = "abcDefGhi ";
/*
Preg_match_all ("/([a-zA-Z] {1} [a-z] *)? [^ A-Z]/", $ str, $ array );
*/
$ Array = preg_split ("/(? = [A-Z])/", $ str );
Print_r ($ array );
?>
The code is as follows:
$ String = "createTechBook ";
$ Arr = preg_split ("/(? = [A-Z])/", $ string );
Print_r ($ arr );
?>
Yes.
Http://www.bkjia.com/PHPjc/321652.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/321652.htmlTechArticlealert ("createTechBook". split (/(? = [A-Z])/) Thanks, the code is as follows :? Php $ str = "abcDefGhi";/* preg_match_all ("/([a-zA-Z] {1} [a-z] *)? [^ A-Z]/", $ str, $ array); */$ array = preg _...