I'm using an API which returns some JSON that I output in PHP.
$result = $api->sendRequest("getUsers", $inputParameters); $output = json_decode($result, true);
An example of an array returned by the API. I can print out specific field values fine, but I can't figure out how to write a simple if statement that indicates whether or not there are duplicate names within the query result, specifically duplicate [fullName] fields as seen below.
Array ( [status] => Array ( [request] => getUsers [recordsTotal] => 3 [recordsInResponse] => 3 ) [records] => Array (  => Array ( [fullName] => Smith, Tom [firstName] => Tom [lastName] => Smith )  => Array ( [fullName] => Jones, Bill [firstName] => Bill [lastName] => Jones )  => Array ( [fullName] => Smith, Tom [firstName] => Tom [lastName] => Smith ) ) )
Any help would be greatly appreciated.