note 129089 added to function.trim
| From: | Hasan dot Ali dot Mostafa1 at gmail dot com | Date: | Wed, 06 Dec 2023 08:31:56 +0000 |
| Subject: | note 129089 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221043@lists.php.net to get a copy of this message | ||
A simple note that can cause a confusion sometimes, is that the trim function well keep trims the
same specified character till reach a different character.
ex:
$test = "0000094342";
$test = ltrim($test, '0');
echo $test // output: "94342"
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 5.134.233.51)
----
Manual Page -- https://php.net/manual/en/function.trim.php
Edit -- https://main.php.net/note/edit/129089
Del: integrated -- https://main.php.net/note/delete/129089/integrated
Del: useless -- https://main.php.net/note/delete/129089/useless
Del: bad code -- https://main.php.net/note/delete/129089/bad+code
Del: spam -- https://main.php.net/note/delete/129089/spam
Del: non-english -- https://main.php.net/note/delete/129089/non-english
Del: in docs -- https://main.php.net/note/delete/129089/in+docs
Del: other reasons-- https://main.php.net/note/delete/129089
Reject -- https://main.php.net/note/reject/129089
Search -- https://main.php.net/manage/user-notes.php