note 95253 added to function.preg-replace

From: Date: Mon, 21 Dec 2009 20:03:37 +0000
Subject: note 95253 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-164244@lists.php.net to get a copy of this message
Bonjour, voici ce qui pourrait aider certain avec cette fonction. Les / simple ne sont pas détecté. Hi, There is a simple code I've found to help others. The simple / are not detected. mauvais code (code false) : $contents = preg_replace("/##/MENUG##/","MENU GAUCHE",$contents); Vous obtenez le message suivant : You obtain this warning : Warning: preg_replace() [function.preg-replace]: Unknown modifier 'M' in systeme.php on line 56 Vous remplacez les / par des -. Ce qui est passable et fonctionne bien. You replace / by - . This work good ! Bon code (good code) : $contents = preg_replace("-##/MENUG##-","MENU GAUCHE",$contents); M'écrire si vous avez des questions ! :) Email me for any questions ! :) ---- Server IP: 216.235.13.26 Probable Submitter: 67.68.24.162 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/95253 Del: integrated -- https://master.php.net/note/delete/95253/integrated Del: useless -- https://master.php.net/note/delete/95253/useless Del: bad code -- https://master.php.net/note/delete/95253/bad+code Del: spam -- https://master.php.net/note/delete/95253/spam Del: non-english -- https://master.php.net/note/delete/95253/non-english Del: in docs -- https://master.php.net/note/delete/95253/in+docs Del: other reasons-- https://master.php.net/note/delete/95253 Reject -- https://master.php.net/note/reject/95253 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164244) next »