note 10327 added to ereg_replace

From: Date: Thu, 28 Dec 2000 07:52:24 +0000
Subject: note 10327 added to ereg_replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-9143@lists.php.net to get a copy of this message
Im new to the PHP scene and I'm using the ereg_replace to add in spaces and removing them: $name = ereg_replace (" ", "%20", $name); is there any way I can use one line like the one above to do multiple things? For example: $name = ereg_replace (" ", "%20", $name); $name = ereg_replace (":", "%3A", $name); Is there any way I can combine this into one line instead of 2. Any help is appreciated. http://www.php.net/manual/function.ereg-replace.php

« previous php.notes (#9143) next »