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
Designing Luns and datastores
#550 5.3.4 SMTPSEND.OverAdvertisedSiz
e; message size exceeds fixed maximum size ##
SQL Server function to call the excel function gammaln
How to allow Internet access between untrusted zones on SSG-140
SSAS 2008 MDX All Member Before Current Member
Citrix \ IE - Published Web Site
Read Outlook End User email from Exchange Server 2007
Windows 2008 Server Domain isues
reverse ajax
Dynamic Color