Hi,
I would like to know how to effectively default variables.
Code:
$myField = $_POST["Field"];
I want to default the value to 0 if there are no value passed. If have several variables to default and I wanting to find a clean way to achieve this; also by avoiding using if else statement for each variables.
Thanks