Your SlideShare is downloading. ×
Php
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Php

264
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
264
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. PHP
  • 2. What is HTML?
  • 3. HyperText Markup Language (HTML) is the mainmarkup language for web pages
  • 4. Why HTML?
  • 5. What is CSS?
  • 6. Cascading Style Sheets (CSS) is a style sheetlanguage used for describing the presentationsemantics (the look and formatting) of HTML h1 { color: white; background-color: orange; } h2 { color: white; background-color: green; }
  • 7. Why CSS?
  • 8. Cascading Style Sheets (CSS) is a style sheetlanguage used for describing the presentationsemantics (the look and formatting) of HTML h1 { color: white; background-color: orange; } h2 { color: white; background-color: green; }
  • 9. What is Javascript?
  • 10. JavaScript is a scripting language function sum() { var i, x = 0; for (i = 0; i < arguments.length; ++i) { x += arguments[i]; } return x; }
  • 11. Why Javascript?
  • 12. HTML provides only one way communication Why the hell don’t you talk to me? Hey, are you there?
  • 13. HTML is static and boring.
  • 14. With pure HTML web pages, the server simplyserves up static HTML that can only displaycontent.
  • 15. With a little help from the serverOkay, PHP brings web pages to life
  • 16. #webpage #static_page #dynamic_page #form
  • 17. PHP Syntax <html> <body> <?php echo "Hello World"; ?> </body> </html>
  • 18. String <?php $txt="Hello World"; echo $txt; ?>Concatenation Operator <?php $txt1="Hello World!"; $txt2="What a nice day!"; echo $txt1 . " " . $txt2; ?>strlen() strlen("Hello world!")strpos strpos("Hello world!","world");
  • 19. Function function functionName() { echo(“Hello world”); }
  • 20. Use PHP to access form data
  • 21. PHP scripts must live on a server
  • 22. A variable is a container that you can store data in.
  • 23. Arithmetic Operators
  • 24. Assignment Operators
  • 25. Comparison Operators
  • 26. Logical Operators
  • 27. If … else
  • 28. Array Numeric Arrays $cars=array("Saab","Volvo","BMW","Toyota"); Associative Arrays $ages = array("Peter"=>32, "Quagmire"=>30, "Joe"=>34);
  • 29. For loops for ($i=1; $i<=5; $i++) { echo "The number is " . $i . "<br />"; }