Results 1 to 2 of 2
  1. #1
    Designer Ghostt's Avatar
    Join Date
    Jul 2007
    Location
    Belgium
    Posts
    195

    Challenge: 100 ways of doing 'Hello World' in php

    Challenge: 100 ways of doing 'Hello World' in php

    This section is getting a little dead, so, why don't we do a little challenge here?
    All together we should find 100 ways of doing a 'hello world' code in php, but!

    WITHOUT THE USE OF THE STRING: HELLO WORLD!

    So this is not allowed:

    PHP Code:
    <?php

    echo 'Hello World'//or anything similar to it.

    ?>
    This is how it should go:

    PHP Code:
    <?php

    $string 
    = array(7210110810811132119111114108100);
        
        foreach(
    $string as $i => $value){
            echo 
    chr($string[$i]);
        }

    ?>
    PHP Code:
    <?php

    $string 
    = array(7229703, -7987, -83, -6, -8);
        
        foreach(
    $string as $i => $value){
            
    $r += $string[$i];
            echo 
    chr($r);
        }

    ?>
    PHP Code:
    <?php

    $string 
    = array("\110""\145""\154""\154""\157""\40""\167""\157""\162""\154""\144");
        
        foreach(
    $string as $i => $value){
            echo 
    $string[$i];
        }

    ?>
    PHP Code:
    <?php

    $string 
    "ebiil\35tloia";
        
    $array preg_split('//'$string, -1PREG_SPLIT_NO_EMPTY);
        
        foreach(
    $array as $char){
            
    $char ord($char)+3;
            
    $output $output.chr($char);
        }
        
        echo 
    ucfirst($output);

    ?>
    And... Every technique should only be used once! So we need 96 more!


  2. #2
    Coders
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    990

    Re: Challenge: 100 ways of doing 'Hello World' in php

    PHP Code:
    <?php
        $input 
    "!dlrow olleH";
        
    $result strrev($input);
        echo 
    $result;
    ?>

Similar Threads

  1. Guide To Annoying Others in ET 25+ ways by HardCoreGamer
    By kangarooman2000 in forum Guides & Tutorials
    Replies: 11
    Last Post: June 1st, 2012, 11:45
  2. Ways of Avoiding IP bans from Quakelive
    By dustyh in forum Quake Live Cheats
    Replies: 1
    Last Post: July 24th, 2011, 21:18
  3. New environment, old ways
    By lexsor in forum Introduce Yourself
    Replies: 3
    Last Post: July 19th, 2008, 22:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •