View Single Post
Re: Show off your finest piece of code!
Old
  (#24)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: Show off your finest piece of code! - 31-12-2004

Some random crap i dug up from one of my webservers :p

PHP Code:
function mt_diff($a$b)
{
    
// Function designed to confuse the FUCK outta anyone.
    
list($am$ai) = explode(' '$a);
    list(
$bm$bi) = explode(' '$b);
    if (
$ai $bi) {
        return (
$ai $bi) + ($am $bm);
    } elseif (
$ai == $bi) {
        if (
$am $bm) {
            return (
$ai $bi) + ($am $bm);
        } elseif (
$am $bm) {
            return (
$bi $ai) + ($bm $am);
        } else {
            return 
0;
        } 
    } else {
        return (
$bi $ai) + ($bm $am);
    } 

And theres always this one..

PHP Code:
// kthx..
die(); // !!!! 


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote