miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Master Class miniBB Support Forums / Master Class /  
 

Curly brackets format technique ( {$likeThis} ) of PHP variables - is it a standard?

 
Author hugh
Partaker
#1 | Posted: 2 Aug 2005 11:55 
You know the technique you use of embedding variables encased in curly brackets in the template files {$likeThis} to reference functions on the index page? Is that a standard php technique? If so can you point me to the part of the manual or a tutorial that deals with it? Thanks.

Author Team
8-)
#2 | Posted: 2 Aug 2005 12:09 
It's not a standart PHP technique, but it is allowed also in PHP, to use such kind of brackets, when working with string variables. Example:

<?php

$a='a';
$b="b{$a}";
echo $b;

//produces output "ba"

echo <<<out
The first letter of alphabet is {$a}.
out;

//produces "The first letter of alphabet is a."

?>

miniBB uses special parsing function, to get these variables out.

Author hugh
Partaker
#3 | Posted: 2 Aug 2005 12:18 
OK. Thanks.

Master Class miniBB Support Forums / Master Class /
 Curly brackets format technique ( {$likeThis} ) of PHP variables - is it a standard?
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑