To remove unwanted tags and attributes from a string, you can use the PHP function ________.
- strip_tags
- sanitize_input
- clean_string
- filter_var
The strip_tags function in PHP is used to remove unwanted HTML and PHP tags and attributes from a string.
Loading...
Related Quiz
- What is a common use case for the $_GET superglobal in PHP?
- If a URL field in a PHP form does not validate, you can display an error message by ______.
- A constructor in a PHP class is defined using the __construct() method.
- To get the ASCII value of the first character of a string in PHP, you would use the ________ function.
- To access data from the $_GET superglobal in PHP, you can use $_GET['parameter'] where 'parameter' is the name of the ______ you wish to access.