[TYPO3-50-general] TypoScript 2.0 syntax

Andreas Balzer typo3 at andreas-balzer.de
Fri May 25 18:02:15 CEST 2007

Thomas Hempel schrieb:
> Hi,
>> Question 2) In PHP and several other languages you can use double 
>> quotes or single quotes to tell the interpreter that you want a 
>> string. In TPO3 you can only use double quotationmarks, right?.
>> e.g.:
>> myObject.value = $hello . "<br />Nice that you\'re here again.<br />" 
>> . $goodbye
>> what about this?
>> myObject.value = $hello . '<br />Nice that you are here again.<br />' 
>> . $goodbye
> Cite Basic Syntax:
> a literal string enclosed by single or double quotes. Single- and double 
> quotes as well as the backslash must be escaped with a backslash sign. 
> Examples: "Hello world" or "and I said \"Hello world\""
> Greets,
> Thomas
Yes, this is true.. ..but only in some parts afaik.
Isn't it that you only use \ when using double quotes? And it should 
only be important if you're going to intepret or parse the code. A 
simple output shouldn't need such a \ imho.


More information about the TYPO3-project-5_0-general mailing list