Doc #52111 [Opn]: System Windows NT DOM 5.1 build 2600 (Windows XP Professional Service Pack 3
| From: | ermaksibir at gmail dot com | Date: | Thu, 17 Jun 2010 14:44:51 +0000 |
| Subject: | Doc #52111 [Opn]: System Windows NT DOM 5.1 build 2600 (Windows XP Professional Service Pack 3 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4565@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52111&edit=1
ID: 52111
User updated by: ermaksibir at gmail dot com
Reported by: ermaksibir at gmail dot com
Summary: System Windows NT DOM 5.1 build 2600 (Windows XP
Professional Service Pack 3
Status: Open
Type: Documentation Problem
Package: PCRE related
Operating System: windows xp sp3
PHP Version: Irrelevant
New Comment:
problem with preg_filter
Previous Comments:
------------------------------------------------------------------------
[2010-06-17 16:42:47] ermaksibir at gmail dot com
Description:
------------
PHP Version 5.3.1
This function does not work with strings. With them, it works similar to
preg_replace (). ie displays the entire string, and not just
coincidence.
Error or function, or describing it. Please, if possible, make sure that
it worked with strings.
Sorry my english
Test script:
---------------
cp windows 1251 (cirilic)
$text = 'ЧÑо Ñебе подаÑиÑÑ,
Ñеловек мой
доÑогой
?..
Я бÑ, к пÑимеÑÑ, Ñаз и навÑегда
поÑовеÑовала ÑдеÑжаÑÑÑÑ Ð¾Ñ
поÑÑва
пÑеподноÑиÑÑ Ð¼ÑжÑине
живоÑнÑÑ
.'
echo (preg_filter
('/((\?)|(\!))[\,\.]+/','<br><strong>$0</strong><br>',
$text));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52111&edit=1