【发布时间】:2014-04-11 08:52:03
【问题描述】:
我的字符串是:
$str = "a quick brown fox over the lazy dog... #fox #dog. hello everybody #lazy";
我想从该字符串中获取#fox, #dog 和#lazy 以及包含# 的每个单词,并且我想将这些字符串添加到这样的数组中:
$array = array(
[0]=>'#fox',
[1]=>'#dog',
[2]=>'#lazy',
);
任何可以帮助我的人.. 请。非常感谢!
【问题讨论】:
-
StackOverflow 为此? O tempora..
标签: php arrays regex function output