PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I remove HTML tags from a string?


To do this, pass the string through the strip_tags function, and it'll clean it up for you like so:

<?php
$mystring 
"I said <ignore me then!>you <b>are a little bit</b> whack!";
echo 
strip_tags($mystring);
?>


Which prints:

I said you are a little bit whack!



ASK A QUESTION

More forms PHP Questions

DYnamic Dropbox when I select a value it has to add a textbox to a specific position in the form how do I do it?? If I could change the dropbox in a textbox and make it add Textboxes depending on the number typed it would be even better but dont think th

Dear Friends, I need to enable the user to add a drop down menu and a text field by only clicking on button (in case the user wants more) I have the following codes how do I make it better: Enter User : Truck Mixer

1.want to know simple logic and procedure of FORM VALIDATION? 2.How to check Login and password in PHP?

Hello, I an trying to figure out how to pass a variable email address to the contact form where you see the send-to-me@me.com. My contact page In a php file uses the following iframe embed: The contact script in feedback/contact. php

How do you check for an empty field in a form?



Custom Search