RE: How to remove carriege return using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You could simply put the whole string on one line, and then use the '\n'
(newline) character to format it at the browser end.

However, it's probably not a good thing to try and put this all on one line,
as it makes it extremely difficult to read what's going on in your program,
assuming that's what you were trying to do.

Rob. 

-----Original Message-----
From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On
Behalf Of Yuan Yudistira
Sent: 06 July 2007 05:50
To: php-objects@xxxxxxxxxxxxxxx
Subject:  How to remove carriege return using PHP

Hi,

I have variable
say
$a='
<form action="http://ebizac.com/ar/optin.php"; method="post"
name="signup" onsubmit="return checkSub()"><input type=hidden name="action"
value="addlead"><input type=hidden name="member"
value="1492"><input type=hidden name="auto" value="3121"><input type=hidden
name="thankyou"
value="http://www.aftersense.com/special_thanks.php";>
	<div align="center">
		<table border=0 cellspacing=0 cellpadding=2><tr><td><font
size="2"
face="arial, verdana">First Name:</font></td>
			<td width="148"><input type=text size=20
name="fname"></td></tr> <tr><td><font size="2" face="arial, verdana">Last
Name:</font></td>
	<td width="148"><input type=text size=20 name="lname"></td></tr>
<tr><td><font size="2" face="arial, verdana">Email address:</font></td>
	<td width="148"><input type=text size=20 name="email"></td></tr>

<tr><td></td><td align=center width="148"><input type="submit"
value="Let me see ..."></td></tr></table>
	</div>
</form>
' ;

That's is a multiline.

I want to change $a variable, so it's content in one line

thanks

YUAN

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Limitless undying love
which shines around me like a million suns It calls me on and on across the
universe...."
Accross The Universe   - The Beatles -
--------------------------------------------
Visit :
http://www.sabukhitam.com/
======================


PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links




***********************************************************************************
Any opinions expressed in email are those of the individual and not necessarily those of the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient 
or entity to who they are addressed. It may contain material protected by attorney-client privilege. If you are not the intended recipient, or a person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited.

Random House Group + 44 (0) 20 7840 8400
http://www.randomhouse.co.uk
http://www.booksattransworld.co.uk 
http://www.kidsatrandomhouse.co.uk
Generic email address - enquiries@xxxxxxxxxxxxxxxxx

Name & Registered Office:
THE RANDOM HOUSE GROUP LIMITED
20 VAUXHALL BRIDGE ROAD
LONDON
SW1V 2SA
Random House Group Ltd is registered in the United Kingdom with company No. 00954009, VAT number 102838980
***********************************************************************************


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux