Skip to content

Instantly share code, notes, and snippets.

@kevingessner
Created September 12, 2015 21:51
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 kevingessner/2297023e21b65624593e to your computer and use it in GitHub Desktop.
Save kevingessner/2297023e21b65624593e to your computer and use it in GitHub Desktop.
<?php
class × {
static function ¼($n) {
return $n/4;
}
static function ½($n) {
return $n/2;
}
static function ¾($n) {
return $n * 3 / 4;
}
static function ²($n) {
return $n * $n;
}
static function ³($n) {
return self::²($n) * $n;
}
}
class ¥£ {
function __construct($¤) {
$this->¤ = $¤;
}
}
<?php
require 'lol.php';
$¿ = ×::²(5);
printf("5 x 5 = %d\n", $¿);
// 5 x 5 = 25
$¢ = new ¥£(×::½(7));
printf("%f\n", $¢->¤);
// 3.500000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment