function to increase the length of a string in php by no of times code example
Example 1: php string length
<?php
$str = 'Hello World!';
echo strlen($str); // 12
?>
Example 2: php string length
$str = 'abcdef';
echo strlen($str); // 6
<?php
$str = 'Hello World!';
echo strlen($str); // 12
?>
$str = 'abcdef';
echo strlen($str); // 6