My string is:
$str = "a quick brown fox over the lazy dog... #fox #dog. hello everybody #lazy";
I want to get #fox, #dog
and #lazy
from that string and also every words that contains#
and I want to add these string to an array like that:
$array = array(
[0]=>'#fox',
[1]=>'#dog',
[2]=>'#lazy',
);
Anyone who can help me.. Please. Thanks a lot!