|
Subject:
|
What's the use of braces in a string literal?
|
|
Posted By:
|
aaaa0441
|
Post Date:
|
1/6/2007 1:35:33 AM
|
I am currently reading "Professional PHP5", I encountered the following code and do not understand the use of the curly braces, "{}". Please tell me.
print "<h1>Individual - {$objEntity->__toString()}</h1>";
May the force be with you.
|
|
Reply By:
|
paagle
|
Reply Date:
|
1/10/2007 5:04:26 AM
|
kk hmmm may be to keep the codes clean it could have been better if we had used for each or somethin
--- Paagle TEAM LEADER-Team Xuberance(http://www.xuberance.com)
|
|
Reply By:
|
aaaa0441
|
Reply Date:
|
1/10/2007 12:18:23 PM
|
Anybody could give a more thorough answer, please?
May the force be with you.
|
|
Reply By:
|
kaos_frack
|
Reply Date:
|
1/10/2007 2:51:34 PM
|
curly braces do not perform any role here probably the auhor just tried to separate the "$objEntity->__toString()" from other content preventing it from getting messed up with other text it's just for logical separation of "$objEntity->__toString()" from other content
|
|
Reply By:
|
jhanny007
|
Reply Date:
|
1/14/2007 7:10:23 AM
|
helo, curly braces is used to separate execution....
_______________________________________ .::If you quit you loss, If yo survive you win::.
.::JHANNY::.
|