searching an array for words starting with 'p'
| From: | andy | Date: | Tue, 30 Jul 2002 15:36:33 +0000 |
| Subject: | searching an array for words starting with 'p' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110352@lists.php.net to get a copy of this message | ||
Hi there,
I am wondering how to search an array for words starting with a certain
character.
E.G:
$word = array('alpha', 'beta', 'php');
I would like to check if there is a word in the array starting with p
Is there alrready a function for this?
Thanx, Andy