PHP strlen() Function

P
PHP stristr() Function
PHP strnatcasecmp() Function

what is the syntax of the STRLEN() function in php?

strlen(string)
ParameterDescription
stringRequired. Specifies the string to check
PHP STRLEN() method

examples of the STRLEN() function

Example 1. In this example, we return the length of the string “Hello”.

<?php
echo strlen("Hello");
?>

Example 2. In this example, we return the length of the string “Hello World”.

<?php
echo strlen("Hello World");
?>
PHP stristr() Function
PHP strnatcasecmp() Function

Add comment

Tutor Network

Share this

Learn PHP from A to Z