Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<?php
$str = "How to change input color by click using jquery ?";
$str1 = str_word_count($str, 1); // return array of string
$arrlength = str_word_count($str); // return count of words
for($x=0;$x<$arrlength;$x++)
{
echo $str1[$x] . " " . $x;
echo "<br>";
}
?>
</head>
<body>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408