note 126021 added to function.trim

From: Date: Sun, 18 Apr 2021 07:23:01 +0000
Subject: note 126021 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-216301@lists.php.net to get a copy of this message
Care should be taken if the string to be trimmed contains intended characters from the definition list. E.g. if you want to trim just starting and ending quote characters, trim will also remove a trailing quote that was intentionally contained in the string, if at position 0 or at the end, and if the string was defined in double quotes, then trim will only remove the quote character itself, but not the backslash that was used for it's definition. Yields interesting output and may be puzzling to debug... ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 2001:a61:bcc:bd01:f4f5:ea2:3622:8e16) ---- Manual Page -- https://php.net/manual/en/function.trim.php Edit -- https://main.php.net/note/edit/126021 Del: integrated -- https://main.php.net/note/delete/126021/integrated Del: useless -- https://main.php.net/note/delete/126021/useless Del: bad code -- https://main.php.net/note/delete/126021/bad+code Del: spam -- https://main.php.net/note/delete/126021/spam Del: non-english -- https://main.php.net/note/delete/126021/non-english Del: in docs -- https://main.php.net/note/delete/126021/in+docs Del: other reasons-- https://main.php.net/note/delete/126021 Reject -- https://main.php.net/note/reject/126021 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216301) next »