15 1 0 4000 1 https://codeblock.co.za 300 true 0

strlen()

0 Comments

Programming Language

PHP [Versions: 4, 5, 7, 8]

Syntax

Typical Usage

Gets the length of a string in PHP.


Accepted Parameters

  • string (string) (Required): The string you’d like to get the length of.

Return Value(s)

Returns the length of the string.

Examples of strlen()

Example 1

<?php
echo strlen('Codeblock');

The above will output 9, the length of the word ‘Codeblock’.

Similar Functions in Other Languages

Was This Helpful?

Previous Post
print_r()
Next Post
is_numeric()

0 Comments

Leave a Reply