PHP Lectute 2
PHP Lectute 2
LECTURE 2
ENG: ALI AL-OBAL
2024-2025
Review
Frontend (client Side) and Backend (Server Side) Design
PHP Hypertext Preprocessor (PHP)
Why PHP?
PHP runs on various platforms (Windows, Linux, Unix, Mac, etc.)
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
PHP supports a wide range of databases
PHP is easy to learn and runs efficiently on the server side
Characteristics of PHP
http://php.net/manual/en/language.variables.basics.
php
Output Variables
Variable Types
PHP supports the following data types:
String
Integer
Float (floating point numbers - also called double)
Boolean
Array
Object
NULL
Resource
PHP Variables Scope
In PHP, variables can be declared anywhere in the script.
PHP echo and print Statements
double quotes
Single quotes