Solved

&nbsp Problem

Posted on 2004-04-12
2
417 Views
Last Modified: 2013-12-12
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
Comment
Question by:ALNMOO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 5

Expert Comment

by:TheClickMaster
ID: 10807802
$content = str_replace(" ","",$content);
0
 
LVL 5

Accepted Solution

by:
TheClickMaster earned 300 total points
ID: 10807812
Will remove all the   by replacing them with nothing.
Details:
$RESULT  = str_replace(SEARCH_FOR, REPLACE_WITH, SEARCH_IN);
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question