strings
| From: | Thomas Holton | Date: | Thu, 30 Nov 2000 22:16:50 +0000 |
| Subject: | strings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28126@lists.php.net to get a copy of this message | ||
Hi, I am confused why the following does not work:
<snip>
$day[$i] = mysql_result($r,$j,"day");
$day[$i] .= "-";
$item = explode("-", $day[$i]);
$y[$i] = $item[0];
$m[$i] = get_next_month($item[1]);
$d[$i] = $item[2];
print "Stored $i: m=$m[$i],d=$d[$i],y=$y[$i] == $day[$i]";
<snip>
prints:
Stored 0: m=Nov,d=3,y=2000 == 2000-11-30-
my question is: why does the $d[$i] var only get only number, 3, instead
of 30, when the $y[$i] var gets all four, or 2000?
TIA
-tom