如何确定计数并根据结果编辑随机数?

问题描述

| 这是我当前的php脚本。
$mystr = \'Hello world. The world is nice\';
substr_count($mystr,\'world\'); // count=2;
$mytext = preg_replace(\'/\\b(\'.$mystr.\')\\b/i\',\'<b>$1</b>\',$mytext);
我想随机地将其中一个用黑体字显示。 有什么聪明的方法吗? 在高级,史蒂文Thx     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)