I have called a MySQL stored procedure from PHP using mysqli. This has one out parameter.
mysqli
$rs = $mysqli->query(\"CALL addNewUser($name,$age,@
Just $row->{"@id"} would work here. You can't use an stdClass as an array ($row[0]...).
$row->{"@id"}
stdClass
$row[0]...