Jump to content

marcus

Members
  • Posts

    1,842
  • Joined

  • Last visited

Posts posted by marcus

  1. I'll show you dirty code.

     

    $let = "them be";
    
    function backOff($user){
    global $let;
    echo "Let " . $let . " " . $user;
    }
    
    $peer = "TheFilmGod";
    backOff($peer);
    

     

    Atleast they're trying to tweak it, don't tell them they're not learning. Most people started off on tutorials and got where they are now.

  2. Try playing around with array variables.

     

    if(!$this){ //$this is not set
    $err[] = "Errror One";
    }
    
    if(!$that){ //$that is not set
    $err[] = "Error Two";
    }
    
    //etc....
    
    if(is_array($err)){
      foreach($err AS $errors){
        echo "<font color=\"red\">$errors</font><br />\n";
      }
    }else {
    echo "OMG IT WORKED.\n";
    }
    

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.