I recently came across this in a PHP script:
fseek($gi->filehandle, $gi->record_length, SEEK_SET) == 0 or die("fseek failed");
What I'm wondering, is if this is somehow better than what I would consider to be a more traditional syntax:
$seek = fseek($gi->filehandle, $gi->record_length, SEEK_SET);
if ($seek !==0) {
die("fseek failed");
}
The first method avoids assigning the results of fseek to a variable, but does that really matter? Does the first method do a better job keeping things out of memory? (Not that that would matter for a function that returns a small integer.)
Thanks for the input.