How to used the id which got using GET method i want to match that id by searching array which i provided to edit that data and make it a new one
<?php
$json = file_get_contents('data.json');
$json = json_decode($json,true);
$user_id=$_GET['id'];
echo "$user_id<br>";
// $new = array_keys($json);
echo "<pre>";
echo print_r($json);
echo "</pre>";
if ($user_id == ????) {
echo "true";
}
else{
echo "false";
}
?>