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
Exchange 2010 CAS and certificates
I need a web based chart
php forms and POST method
What Should the Title Be
iSCSI Performance Tuning
Mysql Query to select from two tables
Folders from Windows Updates are created in USB Discs
asp.net mssql - I have a dataosource that initially searches and pulls in a full query is there a way to alter the dynamiccaly the where clause.
GPO Software Installation Based Upon Hardware
Unable to access OWA