note 12370 modified in function.str-replace by philip

From: Date: Mon, 04 Feb 2002 13:50:53 +0000
Subject: note 12370 modified in function.str-replace by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-26234@lists.php.net to get a copy of this message
I found the following code very helpful for passing full strings with spaces in a URL for processing. IE is smart enough to escape the spaces, but Netscape does not do it. $string = str_replace(" ", "%20", $string); [Ed note: See http://www.php.net/urlencode ] --was-- I found the following code very helpful for passing full strings with spaces in a URL for processing. IE is smart enough to escape the spaces, but Netscape does not do it. $string = str_replace(" ", "%20", $string); [Ed note: See http://www.php.net/urlencode] http://www.php.net/manual/en/function.str-replace.php

« previous php.notes (#26234) next »