note 123533 deleted from language.types.string by cmb

From: Date: Mon, 21 Jan 2019 10:53:06 +0000
Subject: note 123533 deleted from language.types.string by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210084@lists.php.net to get a copy of this message
Note Submitter: jake at qzdesign dot co dot uk ---- With the nowdoc syntax, even backslashes are treated literally and should not be escaped. This lends itself to, for example, producing translation files, e.g. <?php class English { const ABOUT_SLASHES = <<<'END_TEXT' Usually in PHP, backslashes (\) in strings should be escaped with another backslash (i.e. \\), but this is not the case with the nowdoc syntax. END_TEXT; } ?>

« previous php.notes (#210084) next »