0
点赞
收藏
分享

微信扫一扫

PHP 搜索分词

读思意行 2023-05-12 阅读 57


1. 简单的英文分词

 

<?php  
    $search = 'this is a testing';
    $words = explode(' ', $search);   
	$length = count($words);
    for($i = 0; $i < $length; $i++) echo $words[$i].'<br />';
?>

2. 简单的中英文分词

 

 

见附件


举报

相关推荐

0 条评论