By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,044 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,044 IT Pros & Developers. It's quick & easy.

How to replace a charater from end a multiline text using php ?

P: 25
Hi All,

I have a multi line text , i want to remove the '=' sign and space at the end of the each line. How can i remove that '=' sign , there is no \n or <br> to check the new line .
How can be done this using php.If anyone knows please help me.. Thanks in advance..

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
  2. w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns=3D"http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8" />
  6. <title>title here</title>
  7. </head>
  8. <body>
  9.  
  10. <table width=3D"650" border=3D"1" cellpadding=3D"0" cellspacing=3D"0" align=
  11. =3D"center">=20
  12. <tr> <td>
  13.  
  14. <table width=3D"650" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" align=
  15. =3D"center">
  16. <tr>
  17. <td colspan=3D"3">
  18. <a href=3D"http://e.ccialerts.com/a/hBNCRBwB8N6AvB8WQuONhRMu1Sp/cnyb8a"><im=
  19. g src=3D"http://f.chtah.com/i/10/2084020271/12.15.10_book_header.gif" width=
  20. =3D"650" height=3D"300" alt=3D"Subscribe to Business for=
  21. =03 only $29.95 and get the Lists=03with your paid subscript=
  22. ion! " border=3D"0"></a></td>
  23. </tr>
Feb 23 '12 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
How can i remove that '=' sign , there is no \n or <br> to check the new line .
if there's no \n or <br>, how is it the end of a line then?
Feb 24 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.