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
How do I change the letter of a mapped drive?
Outlook: Errors have been detected in the file
Need a driver for sm bus controller on Dell d620
Initialization failed for opening on premisis exchange server
Firebird AutoID VB.net code
I need to change the color of a DataGridView scrollbar in C# WinForms
Multi Homed Windows 2008 Server
Oracle Build Table of tables
HTTP Error 404.3 on IIS 7.0
GUID of a ActiveX OCX