Hello,
I would like to know if someone can explain to me some of the code that user "job0107" used for declaring some variables from post #23. Part of it is shown below. It's part of the code for the function called showCart() within the ShoppingCart Class on ShoppingCart.php.
I don't understand how the following declarations works, or what they mean. How is the notation $ProdID = $Order[0] ? $Order[0] : ""; read, or what does it mean?
What does the "?" and the ":" represent?
I've tried searching for the meaning online. But can't find anything, or just don't know how to Google for it.
I know that the way it's written WORKS properly and that the variables do print out the correct TABLE name and product ID. I just want to know why.
Once the multidimensional array $Orders is broken down,
Why can't we just declare the following:
$Table_Name = $Order[1];
$ProdID = $Order[0];
Thanks for the help!
Jaime Nacach