<?php | |
$inputLines = fgets(STDIN); | |
for ($i = 0; $i < mb_strlen($inputLines); $i += 2) { | |
echo substr($inputLines, $i, 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<?php | |
$inputLines = fgets(STDIN); | |
for ($i = 0; $i < mb_strlen($inputLines); $i += 2) { | |
echo substr($inputLines, $i, 1); | |
} |