php exam2

0.0(0)
studied byStudied by 5 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

PHP

Hypertext Preprocessor (PHP)

2
New cards

PHP files

Files that can contain text, HTML, CSS, JavaScript, and PHP code and are executed on the server, with the result returned as plain HTML to the browser.

3
New cards

PHP syntax

The rules and structure of writing PHP code, including statements ending with a semi-colon, the use of the echo command for output, and the use of quotes for string values.

4
New cards

Variables

Named containers for storing data, with rules for naming conventions, case sensitivity, and the ability to specify a variable type.

5
New cards

Operators

Symbols used to perform operations on variables and values, including comparison operators, logical operators, and string operators.

6
New cards

Conditionals

Control structures used to make decisions in PHP code, including if, if-else, if-elseif, and switch statements.

7
New cards

Loops

Control structures used to repeat a block of code until a certain condition is met, including while, do-while, and for loops.

8
New cards

Functions

Blocks of reusable code that perform a specific task, defined using the function keyword followed by the function name and parentheses.

9
New cards

Variable Scope

The accessibility and lifespan of variables, including local variables created within a function, global variables accessed outside a function, and static variables that maintain their values between function calls.

10
New cards

Arrays

Data structures that store multiple values in a single variable, including indexed arrays, associative arrays, and multi-dimensional arrays.

11
New cards

foreach loop

A special loop used to process arrays in PHP, iterating over each element in the array.

12
New cards

Array Operators

Operators used to perform operations on arrays, including union, equality, identity, inequality, and non-identity operators.

13
New cards

SuperGlobals

Predefined variables in PHP that are always accessible, such as $GLOBALS, $_POST, and $_GET.

14
New cards

Forms and PHP

The use of action and method attributes in HTML forms to indicate the PHP file to be executed when the form is submitted and how the data is sent.

15
New cards

POST vs GET

The differences between the POST and GET methods for sending form data, including visibility, length limitations, and security considerations.

16
New cards

Security Consideration

Cross-Site Scripting (XSS):A type of attack where malicious scripts are injected into trusted websites, and measures to prevent XSS attacks, such as escaping input values using the htmlspecialchars() function.

17
New cards

PHP Date and Time

The use of the date() function to format dates and times in PHP, with various format options and the ability to include characters in the format.

18
New cards

Include and Require Statements

Statements used to insert the contents of a PHP file into another PHP file before the server executes it, with the difference between include and require in terms of error handling.