I need to check some key value is exist in an array using PHP. Here is my code:
$comment = json_encode(array(array('day_id' => '1', 'comment' => 'vodka0'),array('day_id' => '', 'comment' => ''), array('day_id' => '3', 'comment' => 'vodka3'),array('day_id'=>'4','comment'=>'hytt')));
$arrComment = json_decode($comment, true);
Here I need to check some day_id key has value or all day_id key has blank value.