PHP Programming

  1. PHP Language Fundamentals
    1. Basic Syntax
      1. Statements and Semicolons
        1. Comments
          1. Single-Line Comments
            1. Multi-Line Comments
              1. Documentation Comments
              2. Case Sensitivity
                1. Whitespace and Formatting
                  1. Code Style Guidelines
                  2. Variables
                    1. Declaring and Naming Variables
                      1. Variable Syntax
                        1. Naming Conventions
                          1. Valid Variable Names
                            1. Reserved Words
                            2. Assigning Values
                              1. Variable Scope
                                1. Local Scope
                                  1. Global Scope
                                    1. Function Scope
                                      1. Static Variables
                                      2. Variable Variables
                                        1. Superglobals
                                          1. $_GET
                                            1. $_POST
                                              1. $_SERVER
                                                1. $_REQUEST
                                                  1. $_SESSION
                                                    1. $_FILES
                                                      1. $_ENV
                                                        1. $_GLOBALS
                                                      2. Data Types
                                                        1. Scalar Types
                                                          1. String
                                                            1. String Literals
                                                              1. Single Quotes vs Double Quotes
                                                                1. Heredoc Syntax
                                                                  1. Nowdoc Syntax
                                                                    1. String Escape Sequences
                                                                    2. Integer
                                                                      1. Decimal Notation
                                                                        1. Octal Notation
                                                                          1. Hexadecimal Notation
                                                                            1. Binary Notation
                                                                              1. Integer Overflow
                                                                              2. Float
                                                                                1. Floating Point Precision
                                                                                  1. Scientific Notation
                                                                                    1. Special Float Values
                                                                                    2. Boolean
                                                                                      1. True and False Values
                                                                                        1. Boolean Conversion
                                                                                      2. Compound Types
                                                                                        1. Array
                                                                                          1. Indexed Arrays
                                                                                            1. Associative Arrays
                                                                                              1. Mixed Arrays
                                                                                                1. Multidimensional Arrays
                                                                                                2. Object
                                                                                                  1. Object Creation
                                                                                                    1. Object Properties
                                                                                                      1. Object Methods
                                                                                                    2. Special Types
                                                                                                      1. NULL
                                                                                                        1. NULL Values
                                                                                                          1. NULL Comparison
                                                                                                          2. Resource
                                                                                                            1. Resource Types
                                                                                                              1. Resource Management
                                                                                                            2. Callable Type
                                                                                                              1. Iterable Type
                                                                                                              2. Type Juggling and Casting
                                                                                                                1. Automatic Type Conversion
                                                                                                                  1. Explicit Casting
                                                                                                                    1. String Casting
                                                                                                                      1. Integer Casting
                                                                                                                        1. Float Casting
                                                                                                                          1. Boolean Casting
                                                                                                                            1. Array Casting
                                                                                                                              1. Object Casting
                                                                                                                              2. Type Comparison
                                                                                                                                1. Loose Comparison
                                                                                                                                  1. Strict Comparison
                                                                                                                                  2. Type Checking Functions
                                                                                                                                  3. Constants
                                                                                                                                    1. Defining Constants with define()
                                                                                                                                      1. Class Constants with const
                                                                                                                                        1. Magic Constants
                                                                                                                                          1. FILE
                                                                                                                                            1. DIR
                                                                                                                                              1. LINE
                                                                                                                                                1. FUNCTION
                                                                                                                                                  1. CLASS
                                                                                                                                                    1. METHOD
                                                                                                                                                      1. NAMESPACE
                                                                                                                                                      2. Constant Arrays
                                                                                                                                                        1. Case Sensitivity in Constants
                                                                                                                                                        2. Operators
                                                                                                                                                          1. Arithmetic Operators
                                                                                                                                                            1. Addition
                                                                                                                                                              1. Subtraction
                                                                                                                                                                1. Multiplication
                                                                                                                                                                  1. Division
                                                                                                                                                                    1. Modulus
                                                                                                                                                                      1. Exponentiation
                                                                                                                                                                      2. Assignment Operators
                                                                                                                                                                        1. Basic Assignment
                                                                                                                                                                          1. Combined Assignment
                                                                                                                                                                            1. Reference Assignment
                                                                                                                                                                            2. Comparison Operators
                                                                                                                                                                              1. Equal
                                                                                                                                                                                1. Identical
                                                                                                                                                                                  1. Not Equal
                                                                                                                                                                                    1. Not Identical
                                                                                                                                                                                      1. Less Than
                                                                                                                                                                                        1. Greater Than
                                                                                                                                                                                          1. Less Than or Equal
                                                                                                                                                                                            1. Greater Than or Equal
                                                                                                                                                                                            2. Logical Operators
                                                                                                                                                                                              1. AND
                                                                                                                                                                                                1. OR
                                                                                                                                                                                                  1. XOR
                                                                                                                                                                                                    1. NOT
                                                                                                                                                                                                    2. Increment and Decrement Operators
                                                                                                                                                                                                      1. Pre-increment
                                                                                                                                                                                                        1. Post-increment
                                                                                                                                                                                                          1. Pre-decrement
                                                                                                                                                                                                            1. Post-decrement
                                                                                                                                                                                                            2. String Operators
                                                                                                                                                                                                              1. Concatenation
                                                                                                                                                                                                                1. Concatenation Assignment
                                                                                                                                                                                                                2. Array Operators
                                                                                                                                                                                                                  1. Union
                                                                                                                                                                                                                    1. Equality
                                                                                                                                                                                                                      1. Identity
                                                                                                                                                                                                                        1. Inequality
                                                                                                                                                                                                                          1. Non-identity
                                                                                                                                                                                                                          2. Null Coalescing Operator
                                                                                                                                                                                                                            1. Spaceship Operator
                                                                                                                                                                                                                              1. Operator Precedence and Associativity
                                                                                                                                                                                                                              2. Control Structures
                                                                                                                                                                                                                                1. Conditional Statements
                                                                                                                                                                                                                                  1. if Statement
                                                                                                                                                                                                                                    1. else Statement
                                                                                                                                                                                                                                      1. elseif Statement
                                                                                                                                                                                                                                        1. switch Statement
                                                                                                                                                                                                                                          1. Case Statements
                                                                                                                                                                                                                                            1. Default Case
                                                                                                                                                                                                                                              1. Break Statement
                                                                                                                                                                                                                                                1. Fall-through Behavior
                                                                                                                                                                                                                                                2. match Expression
                                                                                                                                                                                                                                                  1. Ternary Operator
                                                                                                                                                                                                                                                    1. Null Coalescing Assignment Operator
                                                                                                                                                                                                                                                    2. Looping Constructs
                                                                                                                                                                                                                                                      1. for Loop
                                                                                                                                                                                                                                                        1. Initialization
                                                                                                                                                                                                                                                          1. Condition
                                                                                                                                                                                                                                                            1. Increment
                                                                                                                                                                                                                                                            2. while Loop
                                                                                                                                                                                                                                                              1. do-while Loop
                                                                                                                                                                                                                                                                1. foreach Loop
                                                                                                                                                                                                                                                                  1. Iterating Values
                                                                                                                                                                                                                                                                    1. Iterating Key-Value Pairs
                                                                                                                                                                                                                                                                      1. Reference Iteration
                                                                                                                                                                                                                                                                    2. Loop Control
                                                                                                                                                                                                                                                                      1. break Statement
                                                                                                                                                                                                                                                                        1. continue Statement
                                                                                                                                                                                                                                                                          1. Nested Loops
                                                                                                                                                                                                                                                                            1. Loop Labels
                                                                                                                                                                                                                                                                            2. Alternative Syntax for Control Structures
                                                                                                                                                                                                                                                                              1. Colon Syntax
                                                                                                                                                                                                                                                                                1. endif, endwhile, endfor, endforeach