PHP 搜索分词 1. 简单的英文分词
<?php $search = 'this is a testing'; $words = explode(' ', $search); $length = count($words); for($i = 0; $i < $length; $i++) echo $words[$i].'<br />'; ?>