我想從函數getaddress獲取變量$ place並將該值傳遞給函數breakintostrings。看來我不能得到變量$的地方。php函數變量作用域
<?php
$username ="1224hammer";
getaddress ($username);
function getaddress($username)
{
$place = row['place'];
function format_address($record)
{
function breakintostrings($x,$y,$z)
}
breakintostrings($place,"$y","$z")
}
?>
你錯過了幾大括號那裏......還有'行'缺少'$' – nico
這是怎麼回事? – Gumbo
可以解釋一下你想要完成的任務嗎? – erisco