|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-04 10:04 UTC] no at email dot 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*
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
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.