[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

&nbsp Problem

Can any one help me…


I have this php variable $content  = “1    2    3      4     ”

And I want to extract this &nbsp from the $content.

Thanks in advance
0
ALNMOO
Asked:
ALNMOO
  • 2
1 Solution
 
TheClickMasterCommented:
$content = str_replace(" ","",$content);
0
 
TheClickMasterCommented:
Will remove all the   by replacing them with nothing.
Details:
$RESULT  = str_replace(SEARCH_FOR, REPLACE_WITH, SEARCH_IN);
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now