1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

[Solved] PHP going crazy ...

Discussion in 'Off-Topic' started by WinterBuild7074, Sep 6, 2017.

  1. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Even this code won't work. :facepalm:
    PHP:
    <?php

    class php {
        if(
    9) {
            
    // some code
        
    }
    }
    Help? Did I forget how to write PHP?
     
  2. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Code:
    FATAL ERROR syntax error, unexpected <something>, expecting <something> on line number 4
     
    Last edited: Sep 6, 2017
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    of course??
    you cant have a linear style programming inside a OOP class
    lets just say you might want to look back at the manual again
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Maybe you should review what a "class" means and what code should be inside a class block.

    What is your "class php" for?
     
  5. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    OK. :facepalm:
    I think I understand now.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.