Solved

&nbsp Problem

Posted on 2004-04-12
2
407 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
  • 2
2 Comments
 
LVL 5

Expert Comment

by:TheClickMaster
Comment Utility
$content = str_replace(" ","",$content);
0
 
LVL 5

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now