<?php /** * Count String Length * * This script demonstrates how to count the characters in a string. * * @author Blaze Script * @website https://blazescript.com * @date January 2019 */ // String $sentence = "The white rabbit hopped down the trail."; // Count the characters in the string $length = strlen($sentence); // Display the result echo $length; ?>
Count String Length
Posted on Friday, February 1st, 2019.