• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • 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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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