PHP 8 Quick Scripting Reference - A Pocket Guide to PHP Web Scripting (3rd Edition)
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 we...
Uloženo v:
| Hlavní autor: | |
|---|---|
| Médium: | E-kniha |
| Jazyk: | angličtina |
| Vydáno: |
Berkeley, CA
Apress, an imprint of Springer Nature
2021
Apress L. P Apress |
| Vydání: | 3 |
| Témata: | |
| ISBN: | 1484266188, 9781484266182, 1484266196, 9781484266199 |
| On-line přístup: | Získat plný text |
| Tagy: |
Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
|
Obsah:
- Title Page Introduction Table of Contents 1. Using PHP 2. Variables 3. Operators 4. String 5. Arrays 6. Conditionals 7. Loops 8. Functions 9. Class 10. Inheritance 11. Access Levels 12. Static 13. Constants 14. Interface 15. Abstract 16. Traits 17. Importing Files 18. Type Declarations 19. Type Conversions 20. Variable Testing 21. Overloading 22. Magic Methods 23. User Input 24. Cookies 25. Sessions 26. Namespaces 27. References 28. Advanced Variables 29. Error Handling 30. Exception Handling 31. Assertions Index
- Var Keyword -- Object Access -- Access Level Guideline -- Accessors -- Chapter 12: Static -- Referencing Static Members -- Static Variables -- Late Static Bindings -- Chapter 13: Constants -- Const -- Define -- Const and define -- Constant Guideline -- Magic Constants -- Chapter 14: Interface -- Interface Signatures -- Interface Example -- Interface Usages -- Interface Guideline -- Chapter 15: Abstract -- Abstract Methods -- Abstract Example -- Abstract Classes and Interfaces -- Abstract Guideline -- Chapter 16: Traits -- Inheritance and Traits -- Trait Guidelines -- Chapter 17: Importing Files -- Include Path -- Require -- Include_once -- Require_once -- Return -- _Autoload -- Chapter 18: Type Declarations -- Argument Type Declarations -- Return Type Declarations -- Strict Typing -- Nullable Types -- Union Types -- Property Type Declarations -- Chapter 19: Type Conversions -- Explicit Casts -- Set type -- Get type -- Chapter 20: Variable Testing -- Isset -- Empty -- Is_null -- Unset -- Null Coalescing Operator -- Nullsafe Operator -- Determining Types -- Variable Information -- Chapter 21: Overloading -- Property Overloading -- Method Overloading -- Isset and unset Overloading -- Chapter 22: Magic Methods -- _toString -- _invoke -- Object Serialization -- _sleep -- _wakeup -- Set State -- Object Cloning -- Chapter 23: User Input -- HTML Form -- Sending with POST -- Sending with GET -- Request Array -- Security Concerns -- Submitting Arrays -- File Uploading -- Superglobals -- Chapter 24: Cookies -- Creating Cookies -- Cookie Array -- Deleting Cookies -- Chapter 25: Sessions -- Starting a Session -- Session Array -- Deleting a Session -- Sessions and Cookies -- Chapter 26: Namespaces -- Creating Namespaces -- Nested Namespaces -- Alternative Syntax -- Referencing Namespaces -- Namespace Aliases -- Namespace Keyword -- Namespace Guideline
- Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Introduction -- Chapter 1: Using PHP -- Embedding PHP -- Outputting Text -- Installing a Web Server -- Hello World -- Compile and Parse -- Comments -- Chapter 2: Variables -- Defining Variables -- Data Types -- Integer Type -- Floating-Point Type -- Bool Type -- Null Type -- Default Values -- Chapter 3: Operators -- Arithmetic Operators -- Assignment Operators -- Combined Assignment Operators -- Increment and Decrement Operators -- Comparison Operators -- Logical Operators -- Bitwise Operators -- Operator Precedence -- Additional Logical Operators -- Chapter 4: String -- String Concatenation -- Delimiting Strings -- Heredoc Strings -- Nowdoc Strings -- Escape Characters -- Character Reference -- String Compare -- String Functions -- Chapter 5: Arrays -- Numeric Arrays -- Associative Arrays -- Mixed Arrays -- Multi-dimensional Arrays -- Chapter 6: Conditionals -- If Statement -- Switch Statement -- Alternative Syntax -- Mixed Modes -- Ternary Operator -- Match Expression -- Chapter 7: Loops -- While Loop -- Do-while Loop -- For Loop -- Foreach Loop -- Alternative Syntax -- Break -- Continue -- Goto -- Chapter 8: Functions -- Defining Functions -- Calling Functions -- Function Parameters -- Optional Parameters -- Named Arguments -- Variable Parameter Lists -- Return Statement -- Scope and Lifetime -- Anonymous Functions -- Closures -- Arrow Functions -- Generators -- Built-in Functions -- Chapter 9: Class -- Instantiating an Object -- Accessing Object Members -- Initial Property Values -- Constructor -- Destructor -- Case Sensitivity -- Object Comparison -- Anonymous Classes -- Closure Object -- Chapter 10: Inheritance -- Overriding Members -- Final Keyword -- Instanceof Operator -- Chapter 11: Access Levels -- Private Access -- Protected Access -- Public Access
- Chapter 27: References -- Assign by Reference -- Pass by Reference -- Return by Reference -- Chapter 28: Advanced Variables -- Curly Syntax -- Variable Variable Names -- Variable Function Names -- Variable Class Names -- Chapter 29: Error Handling -- Correcting Errors -- Error Levels -- Error-Handling Environment -- Custom Error Handlers -- Raising Errors -- Chapter 30: Exception Handling -- Try-catch Statement -- Throwing Exceptions -- Catch Block -- Finally Block -- Rethrowing Exceptions -- Uncaught Exception Handler -- Errors and Exceptions -- Chapter 31: Assertions -- Assert Performance -- Index

