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 Lecture 1 - String, Constants, Arrays, Operators

PHP Lecture 1 - String, Constants, Arrays, Operators

  • Login to see the comments

  • Be the first to like this

PHP Lecture 1 - String, Constants, Arrays, Operators

  1. 1. WEB DEVELOPMENT
  2. 2. PHP PRESENTATORS MD. AL-MAMUN SARKAR
  3. 3. PHP String Constants 1 2 Arrays3 Operators4
  4. 4. String str_word_count("Hello world!")2 strrev("Hello world!")3 str_replace("world", "Dolly", "Hello world!")4 strpos("Hello world!", "world")5 strlen("Hello world!")1
  5. 5. Constant define(name, value, case-insensitive) 2
  6. 6. Operators Assignment operators2 Comparison operators3 Increment/Decrement operators4 Logical operators5 Arithmetic operators1 String operators6
  7. 7. Arithmetic operators
  8. 8. Assignment operators
  9. 9. Comparison operators
  10. 10. Increment/Decrement
  11. 11. Logical operators
  12. 12. String operators
  13. 13. Array • Indexed arrays - Arrays with a numeric index • Associative arrays - Arrays with named keys • Multidimensional arrays - Arrays containing one or more arrays
  14. 14. Array function • sort() - sort arrays in ascending order • rsort() - sort arrays in descending order • asort() - sort associative arrays in ascending order, according to the value • ksort() - sort associative arrays in ascending order, according to the key • arsort() - sort associative arrays in descending order, according to the value • krsort() - sort associative arrays in descending order, according to the key
  15. 15. Superglobals • $GLOBALS • $_SERVER • $_REQUEST • $_POST • $_GET • $_FILES • $_ENV • $_COOKIE • $_SESSION
  16. 16. QUESTION ?
  17. 17. THANK YOU

×