|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-17 16:44 UTC] ermaksibir at gmail dot com
[2010-09-08 16:56 UTC] cataphract@php.net
[2010-09-08 16:56 UTC] cataphract@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cataphract
[2010-09-08 16:56 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 05 02:00:02 2026 UTC |
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));