note 69879 added to function.ereg-replace
| From: | jack dot alcock at gmail dot com | Date: | Sun, 24 Sep 2006 23:29:25 +0000 |
| Subject: | note 69879 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117544@lists.php.net to get a copy of this message | ||
If you're parsing TeX expressions, this ereg_replace will convert fractions such as 1/2 into
the correct notation (\frac{1}{2}):
$texMarkup = ereg_replace('([0-9]+)/([0-9]+)', "\frac{ \\1 }{ \\2 }",
$texMarkup);
----
Server IP: 83.138.144.80
Probable Submitter: 82.32.89.40
----
Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php
Edit -- https://master.php.net/note/edit/69879
Del: integrated -- https://master.php.net/note/delete/69879/integrated
Del: useless -- https://master.php.net/note/delete/69879/useless
Del: bad code -- https://master.php.net/note/delete/69879/bad+code
Del: spam -- https://master.php.net/note/delete/69879/spam
Del: non-english -- https://master.php.net/note/delete/69879/non-english
Del: in docs -- https://master.php.net/note/delete/69879/in+docs
Del: other reasons-- https://master.php.net/note/delete/69879
Reject -- https://master.php.net/note/reject/69879
Search -- https://master.php.net/manage/user-notes.php