|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-29 20:27 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
Description: ------------ If you put some words to replacements, they will be replaced if there are in patterns. Reproduce code: --------------- <?php echo preg_replace(array('/test/', '/sample/'), array('replaced_test sample', 'replaced_sample'), 'test'); ?> Expected result: ---------------- replaced_test sample Actual result: -------------- replaced_test replaced_sample