georgeocrawford
Technical User
Hi,
Can someone please explain this syntax which I came across today:
I understand what this does: $start is given the value of "start" as passed to the script from a form. If "start" is not passed, $start is set to "0".
However, I have never come across this syntax:
$x = ...... ? ...... : ... ;
Could someone tell me what this is called, so I can research it on php.net?
many thanks!
George
Can someone please explain this syntax which I came across today:
Code:
$start = ( isset($_GET["start"]) ) ? $_GET["start"] : 0;
I understand what this does: $start is given the value of "start" as passed to the script from a form. If "start" is not passed, $start is set to "0".
However, I have never come across this syntax:
$x = ...... ? ...... : ... ;
Could someone tell me what this is called, so I can research it on php.net?
many thanks!
George