Categories
Variable | Constant |
Variables can have changed paths | Constants cannot be changed |
The default scope is the current access scope | Constants can be accessed throughout without any scoping rules |
The $ assignment is used for definition | Constants are defined using the define() function |
Compulsory usage of the $ sign at the start | No need for the $ sign for constants |
PHP4 | PHP5 |
No support for static methods | Allows the usage of static methods |
Abstract classes cannot be declared | Abstract classes can be declared |
The method of call-by-value is used | The method of call-by-reference is used |
Constructors can have class names | Constructors have separate names |
require() | require_once() |
The inclusion and evaluation of files | Includes files if they are not included before |
Preferred for files with fewer functions | Preferred when there are a lot of functions |
Scalar Data Types | Compound Data Types | Special Data Types |
Boolean | Array | NULL |
Integer<> | Object | Resource |
Float | ||
String |
ASP.NET | PHP |
A programming framework | A scripting language |
Compiled and executed | Interpreted mode of execution |
Designed for use on Windows | Platform independent |