PHP Curly Brackets in Strings

I finally looked up when to use curly braces around variables inside strings.  Apparently, "It's necessary to use these curly brackets when you're trying to place the value of an array into a string."

IMHO, save the confusion and close the quotes when it's not absolutely clear!

source: http://www.php-mysql-tutorial.com/php-tutorial/php-variables.php

Related Scribbles:
  • PHP Syntax and other Notes


  • ID: 683
    Author:
    leonard
    Date Updated:
    2010-12-28 23:39:31
    Date Created:
    2005-09-19 14:06:38

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> PHP Curly Brackets in Strings
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.