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

How can i remove '=' sign and white space from end of a each line in a multiline text

P: 25
Hi there,

I have a text like

it shows in browser like line1= line2= line3= . I want to remove the = sign and the extra space from the text. How can i remove it? if anyone knows please help me. I wish to display the output in browser like line1line2line3. Thanks in advance,,
Feb 25 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,639
you can use str_replace() to remove those two characters.
Feb 25 '12 #2

P: 25
Thanks Dormilich,

I have fixed the issue by using preg_replace , thank you very much for your information
Feb 27 '12 #3

Post your reply

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