|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-11-26 11:25 UTC] moriyoshi@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
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]; } }