/ Published in: PHP
Deletes empty spaces and br tags on start and end of a string
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function trim_br($string){ return $string; } echo "**".trim_br('<br /> <br/>example text <br/> newline <br />')."**";