Eugene Posted July 7, 2006 Share Posted July 7, 2006 I've read through a lot of scripts and some use this: [color=red]{[/color]$this->content[color=red]}[/color]Point of the { }??? Quote Link to comment https://forums.phpfreaks.com/topic/13917-what-is-this/ Share on other sites More sharing options...
hackerkts Posted July 7, 2006 Share Posted July 7, 2006 Here's an example when you can use it:[code]<?phpif ($a == "a") { echo "It's a"; } else { echo "It's not a"; }?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/13917-what-is-this/#findComment-54214 Share on other sites More sharing options...
.josh Posted July 7, 2006 Share Posted July 7, 2006 actually in that context it's to prevent ambiguity. Quote Link to comment https://forums.phpfreaks.com/topic/13917-what-is-this/#findComment-54222 Share on other sites More sharing options...
wildteen88 Posted July 7, 2006 Share Posted July 7, 2006 Have a read of [url=http://www.phpfreaks.com/forums/index.php/topic,97120.msg389185.html#msg389185]this thread[/url] Quote Link to comment https://forums.phpfreaks.com/topic/13917-what-is-this/#findComment-54303 Share on other sites More sharing options...
hussain Posted July 7, 2006 Share Posted July 7, 2006 {$this->content} it print the value contain in content variable Quote Link to comment https://forums.phpfreaks.com/topic/13917-what-is-this/#findComment-54305 Share on other sites More sharing options...
Daniel0 Posted July 7, 2006 Share Posted July 7, 2006 It's used to display the value of a variable inside a string enclosed in double quotes. Quote Link to comment https://forums.phpfreaks.com/topic/13917-what-is-this/#findComment-54311 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.