note 8360 added to str_replace

From: Date: Thu, 07 Sep 2000 23:00:56 +0000
Subject: note 8360 added to str_replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-4465@lists.php.net to get a copy of this message
Sometimes you want to pass a string with line breaks in it through HTTP while keeping the integrity of the original string. To do this replace the newline characters with the HTTP friendly "%0a". ex. $string = preg_replace("/\r\n|\n\r|\n|\r/", "%0a", $string); http://www.php.net/manual/function.str-replace.php

« previous php.notes (#4465) next »