filter_var

Filters a variable with a specified filter, used for validating and sanitizing data.

Parameters

main.php
PHP 8.4 | UTF-8
Ready
Line: 1, Column: 1

Return Values

Notes

Changelog

Related Functions

Converts special characters to HTML entities to prevent XSS attacks and ensure safe HTML output.

securityxsssanitize

strlen

String

Returns the length of a string in bytes.

lengthvalidationsecurity

Replaces all occurrences of search string with replacement string.

replacesanitizeclean

trim

String

Returns a string with whitespace (or other characters) stripped from the beginning and end of string.

cleanwhitespacesanitize

Checks if a value exists in an array.

searchexistsvalidate

Creates a password hash using a strong one-way hashing algorithm for secure password storage.

securitypasswordhash