PHPPHP關聯數組
<?php
$truck['Toyota']=Tundra;
$truck['Nissan']=Titan;
$truck['Dodge']=Ram;
print "<br />Toyota makes the".$truck['Toyota']."<br />";
print "Nissan makes the".$truck['Nissan']."<br />";
print "Dodge makes the".$truck['Dodge']."<br />";
?>
我學習PHP通過教程: 關聯數組是將密鑰與值相關聯的陣列。
而且,在瀏覽器中查看時...
Toyota makes the Tundra Nissan makes the Titan Dodge makes the Ram
並非如此! 我得到:
Toyota makes theR Nissan makes theR Dodge makes theR
任何人都可以解釋嗎?
永遠不要看瀏覽器屏幕。什麼是* HTML源*你有? –