note 60339 added to function.strtr

From: Date: Wed, 04 Jan 2006 09:47:07 +0000
Subject: note 60339 added to function.strtr
Groups: php.notes 
Request: Send a blank email to php-notes+get-101185@lists.php.net to get a copy of this message
Version: PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56) Zend Engine v1.3.0 I cannot just translate a +491746030990 to 491746030990 by using this: $callerid = strtr($agi->request['agi_callerid'], "+", ""); This just doesn't work, so I have to do it by changing to a whitespace and then delete the whitespace: $callerid = strtr($agi->request['agi_callerid'], "+", " "); $callerid = trim($cid); Not just what I think of a really good way but anyway: It works :-). Rolf ---- Manual Page -- http://www.php.net/manual/en/function.strtr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60339 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60339&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60339&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101185) next »