usertest usertest - 1 year ago 77
PHP Question

Remove line from end of file with PHP

How would I remove a line from the end of a string with PHP? Thanks.

Answer Source

You want to remove whitespace? Try trim(). It's close cousins ltrim and rtrim may be closer to what you want.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download