Skip to content

Instantly share code, notes, and snippets.

@kepi
Created December 18, 2015 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kepi/ab741ea4d8e63dfdc4ca to your computer and use it in GitHub Desktop.
Save kepi/ab741ea4d8e63dfdc4ca to your computer and use it in GitHub Desktop.
Programáckej úkol
<?php
$pole_jak_svin = Array(76,101,105,97,32,79,114,103,97,110,97);
function c($x)
{
$z = Array();
foreach($x as $y) {
$z[] = $y/3;
}
return $z;
}
function a($x)
{
return join(" ", $x);
}
function b($x)
{
$z = Array();
foreach($x as $y) {
$z[] = $y * 5 / 6 - 55;
}
return $x;
}
function d($x)
{
$z = Array();
foreach($x as $y) {
$z[] = $y * 3;
}
return $z;
}
echo "Use The Table Luke\n";
echo a(d(c(b($pole_jak_svin))));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment