Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Hello World is easy in PHP. (Score 5, Funny) 121

Pfff, "Hello World!" is cake in PHP. They really couldn't make it easier:
<?php
$arrData = array(72,101,108,108,111,32,87,111,114,108,100,33) ;
 
for($i=0; $i<count($arrData); $i++) {
        $char = $arrData[$i];
        $char = fConvertChar($char);
        print $char;
}
 
function fConvertChar($char) {
 
        $char = 72 + 2 * $char / 4 * 2 - (8.32 * 8.65384);
        $char = chr($char);
        return $char;
}
 
?>

Slashdot Top Deals

"Most of us, when all is said and done, like what we like and make up reasons for it afterwards." -- Soren F. Petersen

Working...