|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-11-02 05:18 UTC] php at bitgeeks dot 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:
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 11:00:01 2025 UTC |
> 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]