note 128443 added to function.preg-replace-callback
| From: | Evgeny at main dot php dot net | Date: | Tue, 02 May 2023 09:13:12 +0000 |
| Subject: | note 128443 added to function.preg-replace-callback | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220399@lists.php.net to get a copy of this message | ||
Please note! if you have defined namespace,
the usage format must me changed:
echo preg_replace_callback(
"|(\d{2}/\d{2}/)(\d{4})|",
__NAMESPACE__ . '\\next_year',
$text);
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 213.87.127.239)
----
Manual Page -- https://php.net/manual/en/function.preg-replace-callback.php
Edit -- https://main.php.net/note/edit/128443
Del: integrated -- https://main.php.net/note/delete/128443/integrated
Del: useless -- https://main.php.net/note/delete/128443/useless
Del: bad code -- https://main.php.net/note/delete/128443/bad+code
Del: spam -- https://main.php.net/note/delete/128443/spam
Del: non-english -- https://main.php.net/note/delete/128443/non-english
Del: in docs -- https://main.php.net/note/delete/128443/in+docs
Del: other reasons-- https://main.php.net/note/delete/128443
Reject -- https://main.php.net/note/reject/128443
Search -- https://main.php.net/manage/user-notes.php