Hypertext Preprocessor • PHP is a widely-used, open source scripting language • PHP scripts are executed on the server • PHP is free to download and use
PHP is a loosely typed language ◦ In the example above, notice that we did not have to tell PHP which data type the variable is. ◦ PHP automatically converts the variables into correct data type ◦ In a strongly typed programming language, we will have to declare (define) the type and name of the variable before using it.
PHP which we have learned in C/C++, but the concept is still same. • An variable which can hold multiple values. • Types of array:- ◦ Indexed ◦ Associative ◦ Multi-dimensional