LESSON 4 Flashcards

1
Q

PHP_was created by Rasmus Lerdorf in 1994.
is one of the most popular server-side
scripting languages for creating dynamic
and interactive websites.

A

(PHP: Hypertext Preprocessor)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

Web Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

PHP can’t store data on its own; therefore, a reliable _ for storing
information securely and easily retrieving it whenever needed is required.

A

Database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The PHP interpreter parses and executes the PHP code and then returns the results to the web server.

A

PHP Package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PHP COMMENT

A

1) Single-line Comment
2) Multiple-line Comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

uses the symbol //

A

1) Single-line Comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

uses the symbols /* and */

A

2) Multiple-line Comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.

A

VARIABLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Variables can store data of different types, and different data types can do different things

A

DATA TYPE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

PHP supports the following data types:

A
  1. String
  2. Integer
  3. Float
  4. Boolean
  5. Array
  6. NULL
  7. Resource
  8. Object
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

TYPES OF OPERATORS IN PHP

A

Arithmetic Operators
Assignment Operators
Comparison Operators
Increment/Decrement Operators
Logical Operators
String Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

+ Addition

A

SumEx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • Subtraction
A

DifferenceEx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • Multiplication
A

ProductEx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

/ Division

A

QuotientEx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

% Modulus

A

RemainderEx

17
Q

** Exponential

A

nthpowerEx

18
Q

Returns true if $a is equal to $b

19
Q

Returns true if $a is equal to $b, and they
are of the same type

A

=== Identical

20
Q

Returns true if $a is not equal to $b

A

!= Not equal

21
Q

Returns true if $a is not equal to $b

A

<> Not equal

22
Q

Returns true if $a is not equal to $b, or they
are not of the same type

A

!== Not identical

23
Q

++$a

A

Pre-increment

24
Q

$a++

A

Post-increment

25
--$a
Pre-decrement
26
$a--
Post-decrement
27
true if both $a and $b are true.
And
28
true if either $a or $b is true
Or
29
true if either $a or $b is true, but not both.
Xor
30
if $a is not true.
Not true
31
Returns the concatenation of its right and left arguments.
. Concatenation
32
Appends the argument on the right side to the argument on the left side.
.= Concatenation Assignment