What is the difference, between $_SERVER.. variables and built-in functions in PHP?

Discussion in 'PHP' started by eritrea1, Dec 10, 2012.

  1. #1
    I mean, they are both built in to perform some tasks, so where is the profound difference between the two? Why are they separated as $_SEVER[''] variables and build-in functions? why couldn't all be functions?
     
    eritrea1, Dec 10, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    A variable isn't a function and a function isn't a variable. You need to learn programming (not a particular programming language) to understand why. Learning programming languages doesn't teach you things like "why aren't variables the same as functions?"
     
    Rukbat, Dec 10, 2012 IP