Jump to content

Archived

This topic is now archived and is closed to further replies.

Eugene

what is this?

Recommended Posts

I've read through a lot of scripts and some use this: [color=red]{[/color]$this->content[color=red]}[/color]

Point of the  { }???

Share this post


Link to post
Share on other sites
Here's an example when you can use it:
[code]<?php
if ($a == "a") {
  echo "It's a";
  } else {
      echo "It's not a";
      }
?>[/code]

Share this post


Link to post
Share on other sites
Have a read of [url=http://www.phpfreaks.com/forums/index.php/topic,97120.msg389185.html#msg389185]this thread[/url]

Share this post


Link to post
Share on other sites
It's used to display the value of a variable inside a string enclosed in double quotes.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.