ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
[PHP-DB] striping \n or \r
by Nikos Gatsis other posts by this author
Feb 15 2006 10:02AM messages near this date
Re: [PHP-DB] re: slow page loading | Re: [PHP-DB] striping \n or \r
Hello list

Does anybody knows how to strip new lines (\n) or \r from a string?
I try 
$lead=str_replace('(0x0D)',' ',str_replace('(0x0A)',' ',$lead));

or 
$lead=str_replace('\n',' ',str_replace('\r',' ',$lead));

with no results

Thank you
Nikos

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Nikos Gatsis
Micah Stevens

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved