Basic PHP intro

Here is just some basic php.

Hello World!


I'm a variable

I"m a variable (escape character used)
I'm a variableI"m a variable (escape character used)


75
25
96
7575
75 is odd.
2 2 -2 -2

My name is Rob
My name is Rob
Rob

Array

Array ( [0] => pizza [1] => chocolate [2] => coffee )
coffee
Array ( [0] => hamburger [1] => banger [2] => eggs )
Array ( [france] => French [USA] => English [Germany] => german )
Array ( [0] => hamburger [1] => banger [2] => eggs [3] => salad )
Array ( [france] => French [USA] => English )
Rob

If Statements

true
false
true
true
false
true

For/ForEach

1 2 3 4 5 6 7 8 9 10
1 3 5 7 9
10 9 8 7 6 5 4 3 2 1 0
Array ( [0] => cat [1] => dog [2] => turtle )
Key: 0 Value: cat
Key: 1 Value: dog
Key: 2 Value: turtle



While

12345678910111213141516171819
apple grape banana
Key: 0 Value: apple
Key: 1 Value: grape
Key: 2 Value: banana

email's


mail not sent

Get/post/request Variables

if you type after examplephp.php the following "?name=guestFirst&surname=guestLast" it will appear in the array when you hit enter


Array ( )
submit doesn't exist. aka Please Enter a Name


submit doesn't exist. aka Please Enter a Name


Please Enter a Name

Email Form