dear experts.
Forgive me for taxing you with this task.
This seems like a straightforward php while loop and normally, I can write a while loop in asp but this seems a bit too complicated for me.
Can someone please, please assist with the interpretation?
Thanks a lot in advance
Forgive me for taxing you with this task.
This seems like a straightforward php while loop and normally, I can write a while loop in asp but this seems a bit too complicated for me.
Can someone please, please assist with the interpretation?
Thanks a lot in advance
Code:
#don't flip the order of the rows (pop vs shift) 'This means comment in asp
$speak_elev = 0;
$li = '';
while ( $li = array_shift($ascii) )
{ #first begin
#ignore first return value after splitting on white space
#data = split(" ", $li);
array_shift($data);
while ( list($key,$elev) = each ($data) )
{ # end second begin
if ( $elev < $base_elev )
{
echo "$base_elev "; ' This means response.write in asp
}
elseif ( $elev > $cap_elev )
{
echo "$cap_elev "; ' This means response.write in asp
}
else
{
echo "$elev " ; ' This means response.write in asp
if ( $elev > $peak_elev ) { $speak_elev = $elev; }
}
} # end second begin
echo "\n"; 'I believe this means response.write "<br>" in asp
} #end first begin