Menu
Folks,
What this means ? Let me know so I get sure it is what I think it is.
““
$page = ISSET($_GET[‘page’]) && is_numeric($_GET[‘page’]) ? $_GET[‘page’] : 1;
How come there is no “IF” or “ELSE” ?
Which part acts as “IF” and which part acts as “ELSE” ?
What does the “:” mean ?
I would do it like this ….
““
if(ISSET($_GET[‘page’]) && is_numeric($_GET[‘page’])
{
$page = $_GET[‘page’];
}
else
{
$page = 1;
}