Forum Moderators: coopster
$a[array] = strrchr($a[array], ".");
I want it to do the reverse, I want it to find the LAST full-stop in a string and then return everything BEFORE it. I've tried:
$a[array] = reverse_strrchr($a[array], ".");
but I guess it wasn't going to be that easy! :)
Assuming you want the string up to the first full stop
As stated I want it to go to the LAST full stop. There is around 2-4 sentences then a bunch of nonsense characters afterward:
e.g. "This example sentence is ther first sentence. This example sentence is the second one, though very similar to the first. And this sentence is the third. Then thingssss just goabit wierd 2938? from here 90ju"
I want it to show only the stuff before the last full stop. Thanks.
Sorry about that, but glad you got it sorted. Actually, I would prefer to point someone in the right direction and then have them figure it out on their own anyway, so can I just pretend that was intentional?
Cheers!