note 72662 added to function.str-replace

From: Date: Mon, 29 Jan 2007 05:36:04 +0000
Subject: note 72662 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-122307@lists.php.net to get a copy of this message
@mark0: Why don't you use strtr instead? <?php $testFormula = "(a+2-3*i)/2"; print($testFormula ." => ".strtr($testFormula, "+-*/", "-+/*")); ?> In any case, I don't see the use of "inverting" the formula like that. ---- Server IP: 200.59.45.3 Probable Submitter: 201.212.217.64 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/72662 Del: integrated -- https://master.php.net/note/delete/72662/integrated Del: useless -- https://master.php.net/note/delete/72662/useless Del: bad code -- https://master.php.net/note/delete/72662/bad+code Del: spam -- https://master.php.net/note/delete/72662/spam Del: non-english -- https://master.php.net/note/delete/72662/non-english Del: in docs -- https://master.php.net/note/delete/72662/in+docs Del: other reasons-- https://master.php.net/note/delete/72662 Reject -- https://master.php.net/note/reject/72662 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122307) next »