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