Tue Oct 28, 2008 1:39 pm
<!--
In PHP, you can call functions dynamically
1. Declare a function
2. Then declare a variable and assign the function name to the variable (as a string)
3. Then use the variable as a function
-->
<?php
function addition ($a, $b){
echo ($a + $b), "\n";
}
$result = "addition";
$result (3,6);
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.