76 of 110 menu

The Number of Characters in a String in PHP

The number of characters in a string in PHP can be found using the function strlen. See the example:

<?php echo strlen('world'); ?>

Code execution result:

5
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline