I have this sentence
"My name's #jeff,what is thy name?"
And now i want to get #jeff
from this sentence.
I have tried this code
for ($i=0; $i <=substr_count($Text,'#'); $i++) {
$a=explode('#', $Text);
echo $a[$i];
}
But it returns #jeff,what is thy name?
which is not what my soul desires