PHP Constructor Returns Empty Array
<?php class Products { public $arr_obj; public function __construct(){ $this->arr_obj = array(); return $this; } } ARR!
A code snippet showing a Products class whose constructor initializes an empty array is paired with a grinning cartoon pirate-like character shouting “ARR!”. The joke combines PHP syntax with a pirate pun, making fun of code that returns an empty array and the stereotypical pirate exclamation.
- @profunctor_io / 4862 2020-07-02
- Type
- image
- Size
- 393×465 · 22.9 KiB
- Mood
- absurd, playful
- Language
- en
- Added