asterix for arrray_search?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I am trying to find out how to match a search on : 5a or 5b with array search.
Basicly I would like to make it true as soon as the function finds a value starting with 5.

As for now I have:
if (array_search('5a', $emsg) OR array_search('5b', $emsg)){
...

that statement will get very long till z :-)

Any ideas how to make something like this:
array_search('5*', $emsg)

Thank you for any hint,

Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux