Posted by Janwillem Borleffs on 03/08/06 00:32
Jim Carlock wrote:
> (1) The item passed in IS a string (not an array).
> (2) A default string is always returned when no match is found.
> (3) The alphabetical order of the array must remain alphabetized.
> (4) The dashes are not required.
>
You might find preg_grep useful:
http://www.php.net/preg_grep
JW
[Back to original message]
|