[TYPO3-core] RFC #12066: Code cleanup: Add some constants

Sigfried Arnold s.arnold at rebell.at
Wed Mar 3 17:32:44 CET 2010


Am 21.02.2010 17:31, schrieb Oliver Klee:
> The main point of this is to improve code readability [...]

This can be done with coding guidelines.

>    $foo = $salutation . LF . $body;
>
> ... instead of this:
>
>    $foo = $salutation . chr(10) . $body;

Why not just using PHP internal double quoted strings?
(see http://php.net/manual/en/language.types.string.php)

   $foo = "$salutation\n$body";
or
   $foo = $salutation . "\n". $body;


More information about the TYPO3-team-core mailing list