Skip to content

Instantly share code, notes, and snippets.

View PMach17's full-sized avatar
At Work

PMach17

At Work
  • Prague
View GitHub Profile
@PMach17
PMach17 / ProceduralVsOop.php
Created February 1, 2019 12:06 — forked from sycue/ProceduralVsOop.php
PHP Procedural vs. Object-Oriented Programming (OOP)
<?php
// Procedural
function example_new() {
return array(
'vars' => array()
);
}
function example_set($example, $name, $value) {
$example['vars'][$name] = $value;