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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohan lal
    New Member
    • Mar 2011
    • 25

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

    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..

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
    w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns=3D"http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8" />
    <title>title here</title>
    </head>
    <body>
    
    <table width=3D"650" border=3D"1" cellpadding=3D"0" cellspacing=3D"0" align=
    =3D"center">=20
    <tr> <td>
    
    <table width=3D"650" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" align=
    =3D"center">
    <tr>
    <td colspan=3D"3">
    <a href=3D"http://e.ccialerts.com/a/hBNCRBwB8N6AvB8WQuONhRMu1Sp/cnyb8a"><im=
    g src=3D"http://f.chtah.com/i/10/2084020271/12.15.10_book_header.gif" width=
    =3D"650" height=3D"300" alt=3D"Subscribe to Business for=
    =03 only $29.95 and get the Lists=03with your paid subscript=
    ion! " border=3D"0"></a></td>
    </tr>
    Last edited by Dormilich; Feb 24 '12, 06:23 AM. Reason: Please use [CODE] [/CODE] tags when posting code.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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?

    Comment

    Working...