in
|
$i in $a returns a value of 1 if $a [$i] exists, otherwise it returns 0 (zero). (Does not have the side effect of creating $a [$i].) Numeric index sample: 25 in myarray tests for presence of the 25th index of the array myarray. Associative index sample: 'candy' in price tests for the presence of the candy index in the array price.
|