note 91344 deleted from language.types.string by danbrown

From: Date: Mon, 08 Jun 2009 12:38:59 +0000
Subject: note 91344 deleted from language.types.string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156455@lists.php.net to get a copy of this message
Note Submitter: uramihsayibok, gmail, com ---- @strata_ranger: True, you can't escape the {}s (on 5.2.9 I get "\{" in the output, so the braces do remain) but you can double them up. <?php $var = "value"; echo "var = {{$var}}"; // var = {value} ?> Since {{ is invalid syntax (have to have a $ immediately after the brace) PHP skips the first one and proceeds to the second. Thus the { gets printed and the {$var} gets parsed.

« previous php.notes (#156455) next »