LESSON 4 Flashcards
PHP_was created by Rasmus Lerdorf in 1994.
is one of the most popular server-side
scripting languages for creating dynamic
and interactive websites.
(PHP: Hypertext Preprocessor)
a software and hardware that uses HTTP (Hypertext Transfer
Protocol) and other protocols to respond to CLIENT requests made over the World Wide Web. The main job of a _ is to display website content through storing, processing, and delivering web pages to users
Web Server
PHP can’t store data on its own; therefore, a reliable _ for storing
information securely and easily retrieving it whenever needed is required.
Database
The PHP interpreter parses and executes the PHP code and then returns the results to the web server.
PHP Package
PHP COMMENT
1) Single-line Comment
2) Multiple-line Comment
uses the symbol //
1) Single-line Comment
uses the symbols /* and */
2) Multiple-line Comment
The _ are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and
ourselves.
VARIABLE
Variables can store data of different types, and different data types can do different things
DATA TYPE
PHP supports the following data types:
- String
- Integer
- Float
- Boolean
- Array
- NULL
- Resource
- Object
TYPES OF OPERATORS IN PHP
Arithmetic Operators
Assignment Operators
Comparison Operators
Increment/Decrement Operators
Logical Operators
String Operators
+ Addition
SumEx
- Subtraction
DifferenceEx
- Multiplication
ProductEx
/ Division
QuotientEx
% Modulus
RemainderEx
** Exponential
nthpowerEx
Returns true if $a is equal to $b
== Equal
Returns true if $a is equal to $b, and they
are of the same type
=== Identical
Returns true if $a is not equal to $b
!= Not equal
Returns true if $a is not equal to $b
<> Not equal
Returns true if $a is not equal to $b, or they
are not of the same type
!== Not identical
++$a
Pre-increment
$a++
Post-increment