For example I have the text.
$text = 'Hello dear friend, my name is Jacky.
I am 25 years old and @I am earning* $500 per month, but @I am going* to earn more';
I want to find all parts in text that starts from symbol “@” and ends with symbol “*”.
In this example I want to have such variables:
$found[1] = 'I am earning';
$found[2] = 'I am going';
Who can help me with this? I use strstr(), but it is failing when there is more than one found part.
Or:
Both result in
$matchesequalling: