Re: searching an array for words starting with 'p'
| From: | Evgeny Chuykov | Date: | Tue, 30 Jul 2002 23:42:39 +0000 |
| Subject: | Re: searching an array for words starting with 'p' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110435@lists.php.net to get a copy of this message | ||
See preg_grep() function in the manual.
a> Hi there,
a> I am wondering how to search an array for words starting with a certain
a> character.
a> E.G:
a> $word = array('alpha', 'beta', 'php');
a> I would like to check if there is a word in the array starting with p
a> Is there alrready a function for this?
a> Thanx, Andy
--
Best regards,
Evgeny mailto:gecka@baik.ru