/phpinoneday

Creating simple PHP project while learning core topics

Primary LanguagePHP

PHP in one day

Preparing for part-time PHP developer position, where I'd use PHP framework symfony. Preparation for symfony is stored in this repository.

Fundamentals

  1. include and require
  2. redirecting
  3. variables
  4. operators
  5. data types
  6. control structures
  7. functions
  8. type declaration

Superglobals

  1. form handling with $_GET, $_POST, filtering (sanitization & validation)
  2. sessions sessions2 with $_SESSION
  3. cookies cookies2 with $_COOKIE

Object-oriented programming

  1. class with access modifiers, getters & setters
  2. subclass with inheritance & overriding
  3. objects of class & subclass

Database interaction

  1. prepared statements with connection & 5 stages
  2. create, update, delete operations
  3. read operation

Exceptions & errors

  1. exceptions with try, catch, finally, throw & custom handler
  2. errors with custom handler & script termination handler
  3. debugger with custom message when php_ini reporting is on

Followed this book https://b-ok.xyz/book/5578763/2b078c