I have a device that sends data to url, depending on situations 3 sometimes 4 parameters are received, when i try to get data for 4th parameter using
$a = $_GET["xyz"];
in the case when "xyz" does not exist the function
_GET['xyz'];
returns undefined. i tried using try catch and initialized $a to a empty string in catch part but it did not work either. How can that undefined exception be handled?