note 24606 deleted from function.preg-replace by sander

From: Date: Sat, 15 Feb 2003 15:22:01 +0000
Subject: note 24606 deleted from function.preg-replace by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43981@lists.php.net to get a copy of this message
Pls make this (or something just as simple) your first example: echo preg_replace("/off/","on","it's off"); This echos "it's on". This shows that arrays aren't needed but that slashes for the pattern are (to avoid "Delimiter must not be alphanumeric or backslash").

« previous php.notes (#43981) next »