Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$string = "Lots of words in this string";
$words = explode(" ", $string);
$letters = "";
foreach ($words as $value) {
$count = strlen($value);
$letters .= '<font color="red">'.substr($value, 0, 1).'</font>'.substr($value, 1, $count).' ';
}
echo $letters;
?>
<style>
.first-letter {
color: red;
}
</style>
<p class="each-word">Всяка първа буква е червена!</p>