How can I check if $something['say'] has the value of 'bla' or 'omg'?
$something['say']
'bla'
'omg'
$something = array('say' => 'bla', 'say' => 'omg');
You could use the PHP in_array function
if( in_array( "bla" ,$yourarray ) ) { echo "has bla"; }
1.4m articles
1.4m replys
5 comments
57.0k users