note 125631 added to function.preg-match
| From: | chris at ocproducts dot com | Date: | Mon, 28 Dec 2020 15:43:35 +0000 |
| Subject: | note 125631 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216028@lists.php.net to get a copy of this message | ||
If PREG_OFFSET_CAPTURE is set then unmatched captures (i.e. ones with '?') will not be
present in the result array. This is presumably because there is no offset, and thus the original
PHP dev decided best to just leave it out.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.165 (proxied: 184.55.77.114)
----
Manual Page -- http://php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/125631
Del: integrated -- https://master.php.net/note/delete/125631/integrated
Del: useless -- https://master.php.net/note/delete/125631/useless
Del: bad code -- https://master.php.net/note/delete/125631/bad+code
Del: spam -- https://master.php.net/note/delete/125631/spam
Del: non-english -- https://master.php.net/note/delete/125631/non-english
Del: in docs -- https://master.php.net/note/delete/125631/in+docs
Del: other reasons-- https://master.php.net/note/delete/125631
Reject -- https://master.php.net/note/reject/125631
Search -- https://master.php.net/manage/user-notes.php