Could I nest these PHP IFs in a better to understand/ more logical way?
if (isset($_GET['numberofwelds']) && isset($_GET['numberofconwelds']))
{
$numwelds = $_GET['numberofwelds'];
$numconwelds = $_GET['numberofconwelds'];
if (is_int($numwelds) && is_int($numconwelds))
{
$total = $numwelds + $numconwelds;
$response = json_encode($total);
header(“Content-Type:application/json”);
echo $response;
exit;
}
}