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
Unattended Windows 7 Installation answer file not working
Deploy Printers Using Windows 2008 R2 GPO to Windows XP Pro Clients and Removing all current printers
Can I delete .OST files without losing email messages?
HTTPS keeps Rest connection [RST,ACK]
How To Check Packets for Urls
security issue in login application: a logged in user is able to edit her or his own profile
Exchange 2003 Event 116
Blackberry browser 400 error - socketexception Connection reset
Exchange Server 2010 Delegate Access
Is there a way to use visual basic 6 to write data directly to a cd or dvd for windows, xp, vista and 7