I have a result of arrays that has contain like this:
array(
[0]=>array(
["id"]=>56,
["name"]=>"john",
["company_id"]=>1,
["profession"]=>"IT";
)
[1]=>array(
["id"]=>57,
["name"]=>"jane",
["company_id"]=>2,
["profession"]=>"QC Assistant";
)
[2]=>array(
["id"]=>58,
["name"]=>"Bert",
["company_id"]=>1,
["profession"]=>"IT Specialist";
)
[3]=>array(
["id"]=>60,
["name"]=>"Roy",
["company_id"]=>3,
["profession"]=>"Plumber";
)
)
now my problem is I need to search all company_id = 1 and put it in array form with all his keys and values inside.