Answers for "how count the number of characters of a string php"

PHP
5

how to count string characters in php

<?php
$str1 = 'Hello world!';
echo strlen($str1); // Outputs: 12
Posted by: Guest on June-27-2021

Code answers related to "how count the number of characters of a string php"

Browse Popular Code Answers by Language