preg_match - Can't get it - how it works
Posted: Tue Sep 14, 2004 2:16 pm
I have this problem,
I need php to recognise if the word is ending with one of these letters, that are declared as an array
$vocals = array ('a', 'e', 'i', 'o', 'u');
And if it is, to ECHO "for ex. this word ends with a vocal.
I spent two days in figuring out what the code should be, but no success, and I looked several times in the manual - but still don't get it
If possible I would need the code, please.
I need php to recognise if the word is ending with one of these letters, that are declared as an array
$vocals = array ('a', 'e', 'i', 'o', 'u');
And if it is, to ECHO "for ex. this word ends with a vocal.
I spent two days in figuring out what the code should be, but no success, and I looked several times in the manual - but still don't get it
If possible I would need the code, please.