I need the first ID from a loop.
Loop:
while ($row = $db->sql_fetchrow($result))
{
echo ($row['post_id']) . '<br /><br />';
}
Echo Result:
817856<br /><br />817865<br /><br />817870<br /><br />817871<br /><br />817873<br /><br />817874<br /><br />
In this case I need only the Number 817856
var_dump
var_dump($row['post_id']);
var_dump Result:
string(6) "817856" string(6) "817865" string(6) "817870" string(6) "817871" string(6) "817873" string(6) "817874"
I tried:
reset and array_shift without success. Thank you