PHP count_chars() Function

The count_chars() is an inbuilt function in PHP and is used to perform several operations related to string like the number of an ASCII character occurs in a string.

Example

<?php
$str = "Hello World!";
echo count_chars($str,3);
?>

Output

!HWdelor 

Leave a Reply

Your email address will not be published. Required fields are marked *