PHP怎么可能没数组的呢???
$query="select * from city where pinyin='test'";
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
echo $row[cityname];
}
$query="select * from city where pinyin='test'";
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
echo $row[cityname];
}
$MyArray1 = array("子", "丑", "寅", "卯");
引用:
echo $MyArray1[0];
结果:子