Php

Post on 10-May-2015

164 views 0 download

Transcript of Php

PHP Spring bit 2

What is HTML?

HTML stands for Hyper Text Markup Language

HTML stands for Hyper Text Markup Language

One way communication

Hey, are you

there?

Why the hell don’t you talk to me?

HTML is static, boring.

With pure HTML web pages, the server simply serves up static HTML that can only display content.

Okay, PHP brings web pages to life

With a little help

from the server

Use PHP to access form data

PHP scripts must live on a server

A variable is a container that you can store data in.

Arithmetic Operators

Assignment Operators

Comparison Operators

Logical Operators

If … else

Array Numeric Arrays $cars=array("Saab","Volvo","BMW","Toyota");

Associative Arrays

$ages = array("Peter"=>32, "Quagmire"=>30, "Joe"=>34);

For loops