Because, as a dope, I forget that you can invert IF statements like 
that -- you're right, I'd rather do that than mess with the array.

Although the feedback on unset($arrayname['index']) was extremely useful 
knowledge!  Thank you everyone.


On Friday, January 11, 2002, at 12:31  PM, Rasmus Lerdorf wrote:

> Why not just add a simple check inside that while loop?
>    if($temprow['div_id'] != $home_div_id)
>       echo "<option value=\"" . $temprow['div_id']
>           . "\">" . $temprow['div_name'] . "</option>\n";
> Seems more logical to me than to mess with the array itself.
> -Rasmus

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to