prisskreative
8/20/2014 - 7:38 PM

PHP Basics

PHP Basics

Comments

// one line comment

/* Two line 
comment */

/** Two line 
comment */


Statement close with ;

$name = "priss";
/* PHP Constant 
Always is going to be like that never change.
Go on top of the PHP file.
Name with capital letters
Similar to variables.

EX: birth 1984  */

define ("YEAR" , 2014)
define ("JOB_TITLE" , "Teacher")
define ("MAX_BADGES" , 1500000)

echo YEAR;

//return - 2014