Answers for "php lenght function"

PHP
6

php string length

<?php
$str = 'Hello World!';
echo strlen($str); // 12
?>
Posted by: Guest on April-22-2020
2

php string length

$str = 'abcdef';
echo strlen($str); // 6
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language