Welcome, Guest. Please Login or Register.
November 15, 2024, 04:38:58 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Test Board  |  PHP Question - help would be good « previous next »
Pages: [1] Reply Ignore Print
Author Topic: PHP Question - help would be good  (Read 685 times)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
PHP Question - help would be good
« on: December 17, 2001, 02:47:19 PM »
Reply with quote

I know in php you can do this

$othervar = "boo";
$var = ${"hehe$othervar"};

which is equiv to
$var = $heheboo;


BUT, can you do this

function boo()
{
     return "muahaha";
}

$othervar = "boo";
$var = {"$othervar ()"}

and have it work as if you did

$var = boo(); ????



Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:PHP Question - help would be good
« Reply #1 on: December 17, 2001, 03:03:31 PM »
Reply with quote

I think yes you can although I have never used something like that.  Just give it a shot :)
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Test Board  |  PHP Question - help would be good « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.020 seconds with 20 queries.