[PHP-DEV] PHP 4.0 Bug #7585 Updated: Asigning variables to arrays From: joey <email protected>
Date: 11/03/00

ID: 7585
Updated by: joey
Reported By: php <email protected>
Status: Analyzed
Bug Type: *General Issues
Assigned To:
Comments:

This would work if you would stop using octals as array keys:
$montharray[1]

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

[2000-11-02 06:15:10] waldschrott <email protected>
> 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]

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

[2000-11-02 05:18:35] php <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>