<?php $data = [ [ 'id' => 3, ], [ 'id' => 5, ] ]; $ids = array_column($data, 'id'); var_dump($ids); if (in_array(5, $ids)) { echo 'jest'; }
You have javascript disabled. You will not be able to edit any code.