Microsoft
Software
Hardware
Network
Question : PHP: use variable in function name?
Hi All,
Is it possible to use a variable in a function name?
i.e.
$img = 'myimage.png';
$filetype = 'png';
$image = 'imagecreatefrom' . $filetype($img); // should be $image = imagecreatefrompng($filena
me);
Answer : PHP: use variable in function name?
Try like below:
$$ should be used here:
$image = 'imagecreatefrom' . $$filetype($img); // should be $image = imagecreatefrompng($filena
me);
Hope this helps
Addy
Random Solutions
Workstation Primary Group ID set as Domain Controller
Reading data off Raid 0
interactive services detection stopped working
Perl script taking too long
Whats wrong with my css?
how to enable java in ipad sfari
Wireless LAN , Larger Scale
Windows Service crashing on one machine, not on the other
Mounting Exchange Information Store Freezes Server
Please suggest a suitable router