|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-28 12:24 UTC] tony2001@php.net
[2005-11-28 12:35 UTC] shri_phadte at yahoo dot co dot in
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 22:00:01 2025 UTC |
Description: ------------ When I want to replace newline in a string i use str_replace but for Linux i have to code search string as '\n' which is fine but for windows I have to actually press "Enter" in the string to search for and replace a newline in the String. This Happens For The Data Which Have Been Entered Through a HTML Form eg For Linux str_replace("\n"," ",$String); & For Windows str_replace(" "," ",$String); Note :after str_replace(" I have actually pressed "Enter" Button on the keyboard