freelanceprogrammers.org Forum Index » PHP

convert


View user's profile Post To page top
fenzig27 Posted: Fri Sep 16, 2005 7:50 pm


Joined: 08 Mar 2005

Posts: 8
convert
Anyone know how to convert ^M to newlines from within PHP?

Thank you,
Ryan Sexton
Reply with quote
Send private message
View user's profile Post To page top
the_mopboy Posted: Sun Sep 18, 2005 5:50 pm


Joined: 26 Jul 2005

Posts: 4
convert
$new_string = str_replace ("^M", "
", $old_string);

Viola!


On 9/16/05, Ryan Sexton <rsexton@...> wrote:
>
> Anyone know how to convert ^M to newlines from within PHP?
>
> Thank you,
> Ryan Sexton
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "php-objects<http://groups.yahoo.com/group/php-objects>"
> on the web.
> - To unsubscribe from this group, send an email to:
>
php-objects-unsubscribe@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>



--



~~
Scott
Orange County PHP Users Group (with a smile)
http://ocphp.lucentminds.com/


[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help