试试这样的..
<?php
$name = "batman";
function get_details($name,$age){
$temp_str = "Name: ".$name."<br />Age: ".$age;
return($temp_str);
}
echo get_details($name,35); // passing through name as a variable and the age as just text...
?>
给...
Name: batman
Age: 35