note 24437 added to language.types.string
| From: | junkit at gmx dot net | Date: | Thu, 15 Aug 2002 23:08:53 +0000 |
| Subject: | note 24437 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35115@lists.php.net to get a copy of this message | ||
If you need to escape "$" to be escaped in the output, you need "\\\\$" - or
maybe even more!
$ is a control character in Latex. If you want it to become \$ for further processing through Latex,
it seems that there must be 4 (!) backslashes - so that in the end there is one left after
processing the string twice. Once through str_replace and once through preg_replace!
Using 4.1.0 on Windows.
--
http://www.php.net/manual/en/language.types.string.php
http://master.php.net/manage/user-notes.php?action=edit+24437
http://master.php.net/manage/user-notes.php?action=delete+24437
http://master.php.net/manage/user-notes.php?action=reject+24437