About the Author
About the Technical Reviewer
Introduction
Chapter 1: Using PHP
Chapter 2: Variables
Chapter 3: Operators
Chapter 4: String
Chapter 5: Arrays
Chapter 6: Conditionals
Chapter 7: Loops
Chapter 8: Functions
Chapter 9: Class
Chapter 10: Inheritance
instanceof
OperatorChapter 11: Access Levels
var
KeywordChapter 12: Static
Chapter 13: Constants
const
define
const
and define
Chapter 14: Interface
Chapter 15: Abstract
Chapter 16: Traits
Chapter 17: Importing Files
require
include_once
require_once
return
_autoload
Chapter 18: Type Declarations
Chapter 19: Type Conversions
settype
gettype
Chapter 20: Variable Testing
isset
empty
is_null
unset
Chapter 21: Overloading
isset
and unset
OverloadingChapter 22: Magic Methods
__toString
__invoke
__sleep
__wakeup
__set_state
Chapter 23: User Input
Chapter 24: Cookies
Chapter 25: Sessions
Chapter 26: Namespaces
namespace
KeywordChapter 27: References
Chapter 28: Advanced Variables
Chapter 29: Error Handling
Chapter 30: Exception Handling
try-catch
Statementcatch
Blockfinally
BlockChapter 31: Assertions
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.