Doc #73502 [Opn->Nab]: [FR] bug in documentation

From: Date: Thu, 24 Nov 2016 20:50:26 +0000
Subject: Doc #73502 [Opn->Nab]: [FR] bug in documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14141@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73502&edit=1 ID: 73502 Updated by: pierrick@php.net Reported by: thib3113 at gmail dot com Summary: [FR] bug in documentation -Status: Open +Status: Not a bug Type: Documentation Problem Package: Translation problem PHP Version: 7.1.0RC6 Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. The real return is really "Le lent brun grizzly saute par dessus le chien paresseux.". You can try the code. Previous Comments: ------------------------------------------------------------------------ [2016-11-11 23:09:15] thib3113 at gmail dot com Description: ------------ --- From manual page: http://php.net/manual/fr/function.preg-replace.php --- the exemple #2 return : "Le grizzly brun lent saute par dessus le chien paresseux." and not "Le lent grizzly brun saute par dessus le chien paresseux." Test script: --------------- $string = 'Le renard marron agile saute par dessus le chien paresseux.'; $patterns = array(); $patterns[0] = '/agile/'; $patterns[1] = '/marron/'; $patterns[2] = '/renard/'; $replacements = array(); $replacements[2] = 'grizzly'; $replacements[1] = 'brun'; $replacements[0] = 'lent'; echo preg_replace($patterns, $replacements, $string); echo "\n"; ksort($patterns); ksort($replacements); echo preg_replace($patterns, $replacements, $string); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73502&edit=1

« previous php.doc.bugs (#14141) next »