Skip to content

Instantly share code, notes, and snippets.

@belushkin
Last active September 26, 2018 16:24
Show Gist options
  • Save belushkin/6f0b0085777e05ec21e816ddeb5c227a to your computer and use it in GitHub Desktop.
Save belushkin/6f0b0085777e05ec21e816ddeb5c227a to your computer and use it in GitHub Desktop.
Google preparation
<?php
$n = 236;
function reverse($n){
if (strlen($n)==0) {
return '';
}
return substr($n, -1) . reverse(substr($n, 0, -1));
}
//echo reverse($n), "\n";
function beka($n){
if ($n>0) {
beka($n-1);
echo $n, " ";
}
return;
}
beka(10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment