i found this in a coding.....
$this->${title}
why to use {} braces in front of title?
i never used this symbol in my code?
what is the purpose of this symbol?
i found this in a coding.....
$this->${title}
why to use {} braces in front of title?
i never used this symbol in my code?
what is the purpose of this symbol?
Well, first you may want to check out this thread.
Now, to understand the above - you must understand thedefine()function. My explanation was stupid, so it's replaced with this:
So:Originally Posted by techietim
Would return:PHP Code:<?php
define("hello", "How are you today?");
echo ${hello};
?>
How are you today?
Last edited by Nile; 01-19-2010 at 12:09 AM.
Jeremy | jfein.net
make it more clear
ok as u wish
Check out this thread: http://www.dynamicdrive.com/forums/s...ad.php?t=29528
And this link: http://us2.php.net/manual/en/languag...s.variable.php
Jeremy | jfein.net
its better
thnx![]()
Bookmarks