strlen

Returns the length of a string in bytes.

Parameters

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

Return Values

Notes

Changelog

Related Functions

is_array

Variable

Checks whether a variable is an array.

validationtype-checksafety

count

Array

Counts all elements in an array or properties in an object that implements Countable.

countlengthsize

isset

Variable

Determines if a variable is declared and is different than null.

checkvalidationsafety

empty

Variable

Determines whether a variable is empty. A variable is considered empty if it does not exist or if its value equals false.

validationcheckinput

Performs a regular expression match against a string and returns whether a match was found.

regexpatternvalidation

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

securitypasswordhash

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

securityxsssanitize

filter_var

Validation

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

validatesanitizesecurity