PHP count_chars () Function

The PHP count_chars () function lists each character used in a sentence to show once.

count_chars(string,mode)
<?php
//Let's find the characters that are not used in the sentence
$string = "Hello friends";
echo count_chars($string,4);
?>

<?php
//Let's find the characters used in the sentence
$string = "Hello friends";
echo count_chars($string,3);
?>
The PHP count_chars () function has mode values ​​of 0,1,2,3,4. 3 and 4 modes are commonly used.
E.Albayrak

0 Yorum

Soru & Yorum


Web Tasarım

Renkli Kare

Web Tasarım Ajansı