Get Length of the Given String using PHP

strlen function

<?php

$text = 'Hello';
$length = strlen($text);

echo $length;

Leave a Comment

Cancel reply

Your email address will not be published.