Global Variables

NULL

Modifier Function

Modifies the value

Original number: 5

Modified number (doubled): 10

PHP Built-in functions (1000s)!

print_r: Array ( [0] => 1 [1] => 2 [2] => 3 )

var_dump: array(3) { [0]=> string(1) "1" [1]=> int(2) [2]=> float(3) }

Array ( [0] => 1 [1] => 2 [2] => 3 [3] => five )

4 //Returns: 4

dog

* Wp function examples *

/

get_the_post_thumbnail_url( get_the_ID(), 'full' );

get_the_content();

get_the_title();

Use() function

Array ( [0] => 11 [1] => 12 [2] => 13 [3] => 14 [4] => 15 )

Include vs require

The include statement includes and evaluates the specified file. If the file is not found or cannot be accessed, a warning message is issued, but the script execution continues.

The require statement does the same as include except if the file is not found, a fatal error occurs, and script execution stops.

Static Variable-show in PHP Sandbox

111

Class Stucture

Thank of a class as a blueprint for creating objects. It's a way to group functions and variables.

public: Accessible from outside the class.

protected: Accessible within the class and its subclasses.

private: Accessible only within the class itself.

value1value2value3value1

Server Architecture

All public content inside www or public_html folder.

Security Considerations

Sensitive info should be stored outside root folder

Frameworks and Libraries

Extensive list to browse in your own time

isset()

Variable is set.

Shorthand If statement

Variable is set yay!

Please input your name: