Jump to content

What does this mean?


dc_jt

Recommended Posts

[quote author=dc_jt link=topic=116152.msg473082#msg473082 date=1164377033]
$iStart = ($_GET['page']) ? (((int)$_GET['page']-1) * 5) : 0;
[/quote]

It's the short tag of 'if' statement.
same as:
[code]

if($_GET['page']){
  $iStart = ((int)$_GET['page']-1)*5;
}else{
  $iStart = 0;
}

[/code]
Link to comment
https://forums.phpfreaks.com/topic/28332-what-does-this-mean/#findComment-129581
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.