Code: Select all
$myFile = "cm123.mp3";
echo <<<FileRow
<A href={$myFile}>The Record</A>
FileRow;
Code: Select all
function myFile(){
return "cm123.mp3";
}
echo <<<FileRow
<A href={myFile()}>The Record</A>
FileRow;
Thanks
Moderator: General Moderators
Code: Select all
$myFile = "cm123.mp3";
echo <<<FileRow
<A href={$myFile}>The Record</A>
FileRow;
Code: Select all
function myFile(){
return "cm123.mp3";
}
echo <<<FileRow
<A href={myFile()}>The Record</A>
FileRow;
Code: Select all
echo '<A href='.myFile().'>The Record</A>';Code: Select all
$func = 'myfile';
echo <<<FileRow
<A href={$func()}>The Record</A>
FileRow;Code: Select all
class FunctionCaller
{
public function __call($name, $args)
{
return call_user_func_array($name, $args);
}
}
$func = new FunctionCaller;
function myFile()
{
return 'zxc.jpg';
}
echo <<<EOF
blah blah blah {$func->myFile()} jfjfjfjfjf
EOF;
Code: Select all
$a = 1;
$b = 2;
function nm($a,$b){
return pow($a+$b, 2);
}
class FunctionCaller
{
public function __call($name, $args)
{
return call_user_func_array($name, $args);
}
}
$func = new FunctionCaller;
echo <<<MSTR
We'd like to know ($a + $b)^2 and it's {$func->nm($a,$b)} by my function.Very Nice!
MSTR;