PHP Game

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP Game

    Like the game where you can post 3 words to make a story. Well with this you have to create a line of code to make a 'script'


    For example Post 1:

    PHP Code:
    <?
    post 2:

    PHP Code:
    <?
    $varible = "hi";

    And so on to make a script. Any type of script. :P

    Me first:

    PHP Code:

    <?php

    class Game{

    #2
    <?php

    class Game{
    $rand = rand(1,50);

    Comment


      #3
      Originally posted by something else View Post
      <?php

      class Game{
      $rand = rand(1,50);
      you cant write variable like that in class..
      Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

      Comment


        #4
        lol totally correct ..game over lol

        Comment


          #5
          PHP Code:


          <?php 

          class Game{

          var 
          $rand;

          function 
          rand($range){
          $this->rand rand($range);
          Carry on. Also. Use PHP tags.

          Comment


            #6
            PHP Code:
            <?php 

            class Game{

            var 
            $rand;

            function 
            rand($range){
            $this->rand rand($range);

            return 
            $this;
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              PHP Code:

              <?php  

              class Game

              var 
              $rand

              function 
              rand($range){ 
              $this->rand rand($range); 
              return 
              $this;
              }
              }
              $game =& new Game();

              //Database Array

              return array( 
                  
              'mysql' => array( 
                      
              'host' => 'localhost'
                      
              'user' => 'root',
                      
              'pass' => '',
                      
              'name' => 'game'
                  
              ), 
              );  

              class 
              Database{

              function 
              connect(){

              }

              Comment

              Working...
              X