Bug #14849 Updated: str_replace() doesn't understand the '\t' escape sequence
| From: | swm@php.net | Date: | Sun, 13 Jan 2002 13:52:48 +0000 |
| Subject: | Bug #14849 Updated: str_replace() doesn't understand the '\t' escape sequence | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76867@lists.php.net to get a copy of this message | ||
ID: 14849
Updated by: swm
Old Summary: str_replace() doesn't understand the '\t' escape sequence
Reported By: no@email.com
Old Status: Open
Status: Closed
Bug Type: Strings related
Operating System: FreeBSD
PHP Version: 4.1.0
New Comment:
Appears to be solved in current CVS:
<?
$content = "that this";
$content = str_replace("\t", "", $content);
echo $content;
?>
[swm@www test]$ ../php4/php -q t.php | od -c |less
0000000 t h a t t h i s
0000010
moreover:
[swm@www test]$ ../php4/php -q t.php | od -c |less
0000000 t h a t t h i s
0000010
Closing. Reopen if you still have problems.
Previous Comments:
------------------------------------------------------------------------
[2002-01-04 10:04:49] no@email.com
$content = str_replace("\t", "", $content);
- doesn't do antything, ie str_replace() doesn't understand the '\t'
escape character
$content = str_replace("\x09", "", $content);
works fine however
thanks for php! =)
*hugs*
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14849&edit=1