Very short and simple example:
<?php
$text = "Hello World";
$i=0;
while ($i<strlen($text)) {
echo substr($text,$i,1);
$i+=2;
}
?>
4
solved show every second symbol of a string
Very short and simple example:
<?php
$text = "Hello World";
$i=0;
while ($i<strlen($text)) {
echo substr($text,$i,1);
$i+=2;
}
?>
4
solved show every second symbol of a string