Hello World.

Hello World.

My name is Mike and I am 21 years old.

My name is Mike and I am 21 years old.

This is the correct password.

You're old enough to drink in the USA and the UK.

12 divided by 2 equals 6

True.

You're allowed.

Not greater than 50.

Not equal.

Numero is fine.

Hello there.

Ten

Hello there.

Array ( [Mike] => 21 [RJ] => 25 [Anthony] => 35 [Chris] => 22 )
35

Array ( [0] => Pizza [1] => Tacos ) Tacos

10

9

8

7

6

5

4

3

2

1

0

That
1

2

3

4

5

6

7

8

9

10

1

2

3

4

5

6

7

8

9

10

Billy is 16

Dale is 49

Mike
Vincent
My name is Frankie
My name is Michael
My name is Patrick and my age is 21
31
20
15
Mike Annibale
I have £25,123,567.12

$_GET method Example

Name:

Age:



$_POST method Example

Please enter your password:



Embedding php into HTML Example

Supply your name:


You're not Mike? Please type your name:


Array
(
    [1] => Array
        (
            [name] => Level 1
            [description] => This is the first level.
        )

    [2] => Array
        (
            [name] => Level 2
            [description] => This is the second level.
        )

    [3] => Array
        (
            [name] => Level 3
            [description] => This is the third level.
            [points] => Array
                (
                    [1] => 1000
                    [2] => 2000
                    [3] => 3000
                )

        )

)

1000
Array
(
    [1] => Array
        (
            [name] => Level 1
            [description] => This is the first level.
        )

    [2] => Array
        (
            [name] => Level 2
            [description] => This is the second level.
        )

    [3] => Array
        (
            [name] => Level 3
            [description] => This is the third level.
            [points] => Array
                (
                    [1] => 1000
                    [2] => 2000
                    [3] => 3000
                )

        )

)

is
Cookie is not set.

PHP Checkbox Example

I agree with the Terms & Conditions.


Radio Buttons Example

PHP

C

BASIC


Sessions Example


Exploding (Strings to an Array)

Array ( [0] => eating [1] => drinking [2] => the gym [3] => sleeping )
eating at position 0
drinking at position 1
the gym at position 2
sleeping at position 3

Imploding (Arrays to Strings)

GMC, Honda, Kia

`snack`, `email`, `message`, `telephone`