Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Variable Scope

Variable Scope

Kyle B. Johnson

July 23, 2015
Tweet

More Decks by Kyle B. Johnson

Other Decks in Programming

Transcript

  1. Global Scope The Global Scope is the main context of

    an Application. Variables in the Global Scope of a PHP application are accessible anywhere after the variable has been declared.
  2. Functions Functions are blocks of code which can be used

    more than once within an application.
  3. Functions Functions create a relationship between Input and Output. In

    PHP, a function’s input is called the Argument list and the output is called the Return statement.
  4. Application Input Output Class $args $return Method $args Class $args

    $return Method $args Class $args $return Method $args Class $args $return Method $args