Using a variable function determined by some input variable : Dynamic Function « Functions « PHP
- PHP
- Functions
- Dynamic Function
Using a variable function determined by some input variable
<?
function italian() {
print "italian.";
}
function english() {
print "english.";
}
$language = "italian";
$language();
?>
Related examples in the same category