Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Php

488 views

Published on

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Php

  1. 1. PHP
  2. 2. What is HTML?
  3. 3. HyperText Markup Language (HTML) is the mainmarkup language for web pages
  4. 4. Why HTML?
  5. 5. What is CSS?
  6. 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. 7. Why CSS?
  8. 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. 9. What is Javascript?
  10. 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. 11. Why Javascript?
  12. 12. HTML provides only one way communication Why the hell don’t you talk to me? Hey, are you there?
  13. 13. HTML is static and boring.
  14. 14. With pure HTML web pages, the server simplyserves up static HTML that can only displaycontent.
  15. 15. With a little help from the serverOkay, PHP brings web pages to life
  16. 16. #webpage #static_page #dynamic_page #form
  17. 17. PHP Syntax <html> <body> <?php echo "Hello World"; ?> </body> </html>
  18. 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. 19. Function function functionName() { echo(“Hello world”); }
  20. 20. Use PHP to access form data
  21. 21. PHP scripts must live on a server
  22. 22. A variable is a container that you can store data in.
  23. 23. Arithmetic Operators
  24. 24. Assignment Operators
  25. 25. Comparison Operators
  26. 26. Logical Operators
  27. 27. If … else
  28. 28. Array Numeric Arrays $cars=array("Saab","Volvo","BMW","Toyota"); Associative Arrays $ages = array("Peter"=>32, "Quagmire"=>30, "Joe"=>34);
  29. 29. For loops for ($i=1; $i<=5; $i++) { echo "The number is " . $i . "<br />"; }

×