PHP 4.0 Bug #7585 Updated: Asigning variables to arrays

From: Date: Thu, 02 Nov 2000 11:15:10 +0000
Subject: PHP 4.0 Bug #7585 Updated: Asigning variables to arrays
Groups: php.dev 
Request: Send a blank email to php-dev+get-36765@lists.php.net to get a copy of this message
ID: 7585 Updated by: waldschrott Reported By: php@bitgeeks.com Status: Analyzed Bug Type: *General Issues Assigned To: Comments: > printf("DEBUG2: $montharray[01]<br>"); this is a possible failure in auto-conversion.... > printf("DEBUG3: %s<br>", $montharray["01"]); this one is allright, read the manual on "auto-conversion", it should read $montharray[01] Previous Comments: --------------------------------------------------------------------------- [2000-11-02 05:18:35] php@bitgeeks.com When trying to assign variables to arrays the dont apply. Ie, $StrJanuary = "januari"; $montharray[01] = $StrJanuary; printf("DEBUG1: $StrJanuary<br>"); printf("DEBUG2: $montharray[01]<br>"); printf("DEBUG3: %s<br>", $montharray["01"]); outputs... DEBUG1: januari DEBUG2: DEBUG3: --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7585

« previous php.dev (#36765) next »