PHP str_word_count

<?php
print_r(str_word_count("Hello world & good morning!",1));
print_r(str_word_count("Hello world & good morning!",1,"&"));

?>

Array ( [0] => Hello [1] => world [2] => good [3] => morning ) 
Array ( [0] => Hello [1] => world [2] => & [3] => good [4] => morning )

上一篇:MySQL数据库数据迁移到SQLserver


下一篇:PHP array_combine