PDA

View Full Version : searching in array


FrEaKmAn
August 7th, 2007, 01:52 PM
Hi

So for example we have array:


$arr = array('1', '2', '3*');
now can I search in this array only for *, so to get true or false?

oracle128
August 7th, 2007, 03:41 PM
Use a loop to check each element in the array (using a string function), if it contains an asterisk.