task by nitsolution

 <!DOCTYPE html>

<html>
<body>
<?php
findRepeatedCharacters("vamsi krishna narayana");
function findRepeatedCharacters($character){
$each = str_split($character);
$repeated_array=array();
for ($i=0; $i<count($each);$i++){
$count_times = substr_count($character,$each[$i]);
 $repeated_array[]=$each[$i]  .",". $count_times;

}
$final= array_unique($repeated_array);
print_r($final);
return;
}

?>
</body>
</html>

No comments:

Post a Comment

create cartoon video using ai

  https://www.piclumen.com/ using this we can crate cartoon photos https://hailuoai.video/ its not free upto 1000 points we canuse it for fr...