note 71977 added to function.rtrim

From: Date: Wed, 27 Dec 2006 13:52:00 +0000
Subject: note 71977 added to function.rtrim
Groups: php.notes 
Request: Send a blank email to php-notes+get-120953@lists.php.net to get a copy of this message
If there is no '.' at the end when you use rtrim($text, '.') nothing will happen. It is not true that it will delete the last word. You can check it with: <?php $text = "This string contains no . at the end"; $trimmed = rtrim($text, '.'); echo $trimmed; // prints: This string contains no . at the end ?> ---- Server IP: 83.137.200.2 Probable Submitter: 213.158.252.98 ---- Manual Page -- http://www.php.net/manual/en/function.rtrim.php Edit -- https://master.php.net/note/edit/71977 Del: integrated -- https://master.php.net/note/delete/71977/integrated Del: useless -- https://master.php.net/note/delete/71977/useless Del: bad code -- https://master.php.net/note/delete/71977/bad+code Del: spam -- https://master.php.net/note/delete/71977/spam Del: non-english -- https://master.php.net/note/delete/71977/non-english Del: in docs -- https://master.php.net/note/delete/71977/in+docs Del: other reasons-- https://master.php.net/note/delete/71977 Reject -- https://master.php.net/note/reject/71977 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120953) next »