PHP Count Characters in a String

This PHP script counts the number characters in a string and outputs the result.

<?php

/**
* Count Characters in a String
*
* This script simply displays the total
* number of characters in a string. 
* 
* @author		PHP Simple
* @website		https://phpsimple.com
* @date			August 2021
*/

$string = "Hello world.";

$count = strlen($string);

echo $count;

?>