PHP Variable Functions:
Learn PHP Variable Function means that if a variable name has a format like this $var(), PHP will consider this as a variable function and will look for a function with a name which is assigned to it, and will try to execute it.
This variable function does not work with echo(), print(), unset() etc language constructs.
PHP Example:/strong>
<?php
function
fun(){
echo "This is an example";}
function
disp($var){ echo "<br/>Value is:".$var;}
$f
='fun';$f
();$f
='disp';$f
('New Val');?>
Output:
This is an example
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.