note 127974 added to function.ctype-xdigit
| From: | Anonymous at main dot php dot net | Date: | Fri, 02 Dec 2022 10:51:29 +0000 |
| Subject: | note 127974 added to function.ctype-xdigit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219930@lists.php.net to get a copy of this message | ||
this can be used with great results if you wanna check for something like
"Tobias2" whether there is a number at the end of the string. (F.e. courselist with
coursenames etc.)
Just substring the last char and put it in the function.
We should be glad about every possibility to cut out these damn regexes from our code. NEVER USE
REGEX
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.161 (proxied: 80.153.175.203)
----
Manual Page -- https://php.net/manual/en/function.ctype-xdigit.php
Edit -- https://main.php.net/note/edit/127974
Del: integrated -- https://main.php.net/note/delete/127974/integrated
Del: useless -- https://main.php.net/note/delete/127974/useless
Del: bad code -- https://main.php.net/note/delete/127974/bad+code
Del: spam -- https://main.php.net/note/delete/127974/spam
Del: non-english -- https://main.php.net/note/delete/127974/non-english
Del: in docs -- https://main.php.net/note/delete/127974/in+docs
Del: other reasons-- https://main.php.net/note/delete/127974
Reject -- https://main.php.net/note/reject/127974
Search -- https://main.php.net/manage/user-notes.php