0%

This pocket reference has been updated with the new PHP 8 release. It is a condensed, code-rich scripting and syntax handbook for the PHP scripting language. You won’t find any technical jargon, bloated samples, drawn-out history lessons or witty stories in this book. What you will find is a web scripting language reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any PHP programmer or web developer. In it, you will find a concise reference to the PHP 8 scripting language syntax. It includes short, simple, and focused code examples; a well-laid-out table of contents; and a comprehensive index allowing easy review.

PHP 8 Quick Scripting Reference presents the essentials of PHP in a well-organized format, including new features in PHP 8 such as the just in time (JIT) compiler, union types, nullsafe operator, null coalescing assignment operator, match expressions, named arguments, throw expressions, static return type, non-capturing catches, reclassified engine warnings and constructor property promotion.

What You Will Learn

  • Discover what is new in PHP 8 and how to get started with it
  • Work with variables, operators, strings, arrays, conditionals, loops, and other constructs
  • Group and reuse code with functions, methods, and namespaces
  • Use object-oriented features such as classes, inheritance, abstract classes, and interfaces
  • Import files and retrieve user data
  • Make use of type declarations and type conversions
  • Test variables, create references, and use overloading methods
  • Store user data with cookies and sessions
  • Deal with errors through error handling, exception handling, and assertions

Who This Book Is For

Experienced PHP programmers and web developers who may be new to PHP.

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Using PHP
  4. 2. Variables
  5. 3. Operators
  6. 4. String
  7. 5. Arrays
  8. 6. Conditionals
  9. 7. Loops
  10. 8. Functions
  11. 9. Class
  12. 10. Inheritance
  13. 11. Access Levels
  14. 12. Static
  15. 13. Constants
  16. 14. Interface
  17. 15. Abstract
  18. 16. Traits
  19. 17. Importing Files
  20. 18. Type Declarations
  21. 19. Type Conversions
  22. 20. Variable Testing
  23. 21. Overloading
  24. 22. Magic Methods
  25. 23. User Input
  26. 24. Cookies
  27. 25. Sessions
  28. 26. Namespaces
  29. 27. References
  30. 28. Advanced Variables
  31. 29. Error Handling
  32. 30. Exception Handling
  33. 31. Assertions
  34. Back Matter
3.128.198.21