Hi everyone,
When I look at my $array using
<?php print_r($array) ?>
Here is what I get.
Array
(
[XYZ] => Array
(
[0] => ABC123ABC
[1] => DEF456DEF
)
)
I want to be able to detect if 456 exists in the $array and if so
<? echo "456 exists in this array"; ?>
I am new to arrays though and cant seem to get it to work using
<?php
if (in_array(array("*456*"), $array)) {
echo "456 exists in this array";
}
?>
What am I doing wrong here? Any help is greatly appreciated..
thx