<?php $results = [ [ 'key' => 'Group', 'value' => '123', ], [ 'key' => 'clientId', 'value' => '1234', ], [ 'key' => 'Name', 'value' => 'ABC - This company\'s name', ] ]; $index = array_search('clientId', array_column($results, 'key')); if($index===false) { //error handling } var_dump($results[$index]);
You have javascript disabled. You will not be able to edit any code.