Php

20

Click here to load reader

Transcript of Php

Page 1: Php

PHP Spring bit 2

Page 2: Php

What is HTML?

Page 3: Php

HTML stands for Hyper Text Markup Language

Page 4: Php

HTML stands for Hyper Text Markup Language

Page 5: Php

One way communication

Hey, are you

there?

Why the hell don’t you talk to me?

Page 6: Php

HTML is static, boring.

Page 7: Php

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

Page 8: Php

Okay, PHP brings web pages to life

With a little help

from the server

Page 9: Php
Page 10: Php

Use PHP to access form data

Page 11: Php

PHP scripts must live on a server

Page 12: Php

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

Page 13: Php
Page 14: Php

Arithmetic Operators

Page 15: Php

Assignment Operators

Page 16: Php

Comparison Operators

Page 17: Php

Logical Operators

Page 18: Php

If … else

Page 19: Php

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

Associative Arrays

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

Page 20: Php

For loops