Skip to content

Commit

Permalink
Update php.html.markdown
Browse files Browse the repository at this point in the history
a few sentences to constants
  • Loading branch information
paierlep committed Jul 3, 2013
1 parent 8ffd02f commit a46ae22
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions php.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ END;
echo 'This string ' . 'is concatenated';


/********************************
* Constants
*/

// A constant is defined by using define()
// and can never be changed during runtime!

// a valid constant name starts with a letter or underscore,
// followed by any number of letters, numbers, or underscores.
define("FOO", "something");

// access to a constant is possible by direct using the choosen name
echo 'This outputs '.FOO;


/********************************
* Arrays
*/
Expand Down

0 comments on commit a46ae22

Please sign in to comment.