I am very new to php (but not to programming) and have purchased an open source code shopping cart that I am trying to dissect.
I've run into the following section of code which deals with several variables and also uses ternary operators - problem is I not figuring out what is happening. Here's one of the code snippets:
Can someone explain in layman's terms what I've got going on here? Help Appreciated!
Thanks!!!
I've run into the following section of code which deals with several variables and also uses ternary operators - problem is I not figuring out what is happening. Here's one of the code snippets:
Code:
if (isset($_GET["order_without_billing_address"]) || isset($_POST["order_without_billing_address"]))
$order_without_billing_address = isset($_GET["order_without_billing_address"])?
$_GET["order_without_billing_address"]:$_POST["order_without_billing_address"];
Can someone explain in layman's terms what I've got going on here? Help Appreciated!
Thanks!!!