hi all
Any help on this would be massively appreciated.
I have an array as such:
Array
(
[delpassenger] => 1
[firstname] => Joe
[lastname] => Bloggs
[outflightnumber] =>
[outdepartdate] =>
[outdeparthours] => 00
[outdepartminutes] => 00
[outdepartlocation] => 0
[outarrivalhours] => 00
[outarrivalminutes] => 00
[outarrivelocation] => 0
[flightnumber] =>
[departdate] =>
[departhours] => 00
[departminutes] => 00
[departlocation] => 0
[arrivalhours] => 00
[arrivalminutes] => 00
[arrivelocation] => 0
[flightcost] =>
[flightbookeddate] => 26/08/2011
[dateofbirth] => 0000-00-00
[tdnumber] =>
[tdexpirydate] => 0000-00-00
[tdissuecountryid] => 0
[nationalityid] => 0
[documenttypeid] => 0
[dateofissue] => 0000-00-00
[passengerid] => 6839
[newpassenger] => 0
[selflightid] =>
[extrachoice] => Array
(
[6] => 6raceentry
[12] => 12train
)
)
I need a quick and simple way to be able to check if:
a) the [extrachoice] key exists in the array or not
b) and if it does exist, check to see if one of its potential many Values contains the string 'raceentry'
Many tahnks for reading and possibly helping.
kbc
Can anyone help as I am at a loss now. :mad: