Skip to main content
  • Book
  • © 2021

PHP 8 Quick Scripting Reference

A Pocket Guide to PHP Web Scripting

Apress

Authors:

  • The first contemporary pocket code reference guide on PHP 8

  • A concise reference, updated to the PHP 8 scripting language syntax

  • Includes short, simple, and focused code examples

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (31 chapters)

  1. Front Matter

    Pages i-xviii
  2. Using PHP

    • Mikael Olsson
    Pages 1-6
  3. Variables

    • Mikael Olsson
    Pages 7-11
  4. Operators

    • Mikael Olsson
    Pages 13-19
  5. String

    • Mikael Olsson
    Pages 21-25
  6. Arrays

    • Mikael Olsson
    Pages 27-30
  7. Conditionals

    • Mikael Olsson
    Pages 31-37
  8. Loops

    • Mikael Olsson
    Pages 39-44
  9. Functions

    • Mikael Olsson
    Pages 45-56
  10. Class

    • Mikael Olsson
    Pages 57-64
  11. Inheritance

    • Mikael Olsson
    Pages 65-68
  12. Access Levels

    • Mikael Olsson
    Pages 69-73
  13. Static

    • Mikael Olsson
    Pages 75-79
  14. Constants

    • Mikael Olsson
    Pages 81-85
  15. Interface

    • Mikael Olsson
    Pages 87-90
  16. Abstract

    • Mikael Olsson
    Pages 91-94
  17. Traits

    • Mikael Olsson
    Pages 95-97
  18. Importing Files

    • Mikael Olsson
    Pages 99-103
  19. Type Declarations

    • Mikael Olsson
    Pages 105-112
  20. Type Conversions

    • Mikael Olsson
    Pages 113-115

About this book

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.

Authors and Affiliations

  • Hammarland, Finland

    Mikael Olsson

About the author

Mikael Olsson is a professional web entrepreneur, programmer, and author. He works for an R&D company in Finland where he specializes in software development. In his spare time he writes books and creates websites that summarize various fields of interest. The books he writes are focused on teaching their subject in the most efficient way possible, by explaining only what is relevant and practical without any unnecessary repetition or theory. 

Bibliographic Information

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access