Kodlar açıklamalarını ile aşağıda bulunuyor.
PHP Kod:
$text = "WebAilesi";
$count = strlen($text);
for ($i=0,$i<=$count;$i++):
$write = substr($text,0,$i);
echo $write. "<br>;
endfor;
)

$text = "WebAilesi";
$count = strlen($text);
for ($i=0,$i<=$count;$i++):
$write = substr($text,0,$i);
echo $write. "<br>;
endfor;
<?php
$text = "Webailesi";
for($i = 0; $i < strlen($text); $i++){
echo $text[$i]."<br>";
}
?>(29-04-2020, 23:10)ITenGriTR Adlı Kullanıcıdan Alıntı: Neden bu kadar uzun ? Altta verdiğim bölümde aynısını yapıyor ve substr'ye ihtiyaç yokPHP Kod:<?php
$text = "Webailesi";
for($i = 0; $i < strlen($text); $i++){
echo $text[$i]."<br>";
}
?>