1. Introduction
  2. Acknowledgements
  3. Content
  4. 1. Structure
    1. 1.1. Extension
    2. 1.2. Core
  5. 2. Constants
  6. 3. Functions
    1. 3.1. Arguments
      1. 3.1.1. Scalar Types
        1. 3.1.1.1. Boolean
        2. 3.1.1.2. Integer
        3. 3.1.1.3. Floating point numbers
        4. 3.1.1.4. Strings
      2. 3.1.2. Compound Types
        1. 3.1.2.1. Arrays
        2. 3.1.2.2. Objects
        3. 3.1.2.3. Callable
        4. 3.1.2.4. Iterable
        5. 3.1.2.5. Enumerations
      3. 3.1.3. Special Cases
        1. 3.1.3.1. Optional Parameters
        2. 3.1.3.2. Passing by Reference
        3. 3.1.3.3. Default Argument Values
        4. 3.1.3.4. Variable-length Argument Lists (Variadics)
    2. 3.2. Return Values
      1. 3.2.1. No Return Value
      2. 3.2.2. Scalar Types
      3. 3.2.3. Arrays
      4. 3.2.4. Objects
  7. 4. Classes
    1. 4.1. Class Constants
    2. 4.2. Class Methods
    3. 4.3. Class Properties
    4. 4.4. Class Interface
      1. 4.4.1. Implement an Interface
    5. 4.5. Class Inheritance
      1. 4.5.1. Abstract Class
      2. 4.5.2. Extend a Class

PHP Core: How do I..?

Acknowledgements

This work is heavily inspired by the following amazing content (in alphabetical order):

  • Julien Pauli's blog
  • Nikita Popov's blog
  • phpinternals.net
  • phpinternalsbook/PHP-Internals-Book
  • ThomasWeinert/php-extension-sample
  • Writing PHP Extensions

Copyright (c) 2022 - Flavio Heleno