ID:               20645
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Arrays related
 Operating System: win2k
 PHP Version:      4.2.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You have to use "!==" operator when you want to distinguish 0 and
false.




Previous Comments:
------------------------------------------------------------------------

[2002-11-26 07:56:58] [EMAIL PROTECTED]

I try to find some entry in an Array beginning with 
index 0. I test for false to treat the "not found" event
but don�t find my entrys in the first line.
If i test for 0 i always end up with my fist line.

$this->wochentage_name=array(
                array(0,"Monday","Montag","Mo"),
                array(1,"Tuesday","Dienstag","Di"),
                array(2,"Wednesday","Mittwoch","Mi"),
                array(3,"Thursday","Donnerstag","Do"),
                array(4,"Friday","Freitag","Fr"),
                array(5,"Saturday","Samstag","Sa"),
                array(6,"Sunday","Sonntag","So")
                );

for($i=0;$i<sizeof($this->wochentage_name);$i++)
{
        print_r($this->wochentage_name[$i]);
        echo "ENDE f�r Nummer".$i."<br>";
        $key = array_search($in,$this->wochentage_name[$i]);
        if($key != 0)
                {
                return $this->wochentage_name[$i][$row];
                }
}



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20645&edit=1

Reply via email to