How to remove
(that are hidden) and SPACES in below text but
<br>
tagi tested:
trim($string)
=> NOT WORKEDstr_replace(' ', '', $string)
=> NOT WORKEDi used some regex => NOT WORKED
<br>تاريخ ورود: یکشنبه ۲۳ بهمن ماه ۱۳۹۰
UPDATE: Thanks
1 : to restore to a former place or position replace cards in a file. 2 : to take the place of especially as a substitute or successor. 3 : to put something new in the place of replace a worn carpet.
Some common synonyms of replace are displace, supersede, and supplant.
replace verb [T] (CHANGE FOR)to take the place of something, or to put something or someone in the place of something or someone else: The factory replaced most of its workers with robots. Tourism has replaced agriculture as the nation's main industry.
This solution will work, I tested it:
$string = htmlentities($content, null, 'utf-8'); $content = str_replace(" ", "", $string); $content = html_entity_decode($content);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With