recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
This function tries to return a string with all HTML and PHP tags
stripped from a given str. It uses
the same tag stripping state machine as the
fgetss() function.
You can use the optional second parameter to specify tags which should not be stripped.
Note:
allowable_tagswas added in PHP 3.0.13 and PHP 4.0.0.Since PHP 4.3.0, HTML comments are also stripped. This is hardcoded and can not be changed with
allowable_tags.
| Warning |
Because strip_tags() does not actually validate the HTML, partial, or broken tags can result in the removal of more text/data than expected. |
| Warning |
This function does not modify any attributes on the tags that you allow
using |
strip_tags() has been binary safe since PHP 5.0.0
See also htmlspecialchars().
Another Useful functions:
zend-api.zend-strip | function.stripslashes | function.stripos | function.stripcslashes | function.strip-tags | function.php-strip-whitespace | function.mb-stripos |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.