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

How can I access information sent through GET on a form?

how to access information sent trough $_GET on functions?

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

This may seem simple but I am just starting out. After the action of my submit button on my html page sends the user and the information to my php page how do I get the user back to the page with the form without having to get the user to have to click o

I currently use this form on my site: Name



Custom Search