php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75008 [KR] Example code error
Submitted: 2017-07-31 05:14 UTC Modified: 2017-08-03 12:41 UTC
From: prioriqz at gmail dot com Assigned:
Status: Suspended Package: Translation problem
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: prioriqz at gmail dot com
New email:
PHP Version: OS:

 

 [2017-07-31 05:14 UTC] prioriqz at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.preg-match
---

In Korean language page: http://php.net/manual/kr/function.preg-match.php

Example #4 code has errors

see below

<?php

$str = 'foobar: 2008';

preg_match('/(?<name>\w+): (?<digit>\d+/', $str, $matches);

print_r($matches);

?>

expected code

<?php

$str = 'foobar: 2008';

preg_match('/(?<name>\w+): (?<digit>\d+)/', $str, $matches);

print_r($matches);

?>




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-08-03 12:41 UTC] cmb@php.net
-Summary: Example code error +Summary: [KR] Example code error -Status: Open +Status: Suspended -Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: Translation problem
 [2017-08-03 12:41 UTC] cmb@php.net
Well, the Korean translation should have been removed due to being
out-dated.[1] Therefore, I'm suspending this ticket.

[1] <https://github.com/php/web-php/pull/113>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC