├── README.md ├── trick-1.php ├── trick-2.php ├── trick-3.php ├── trick-4.php ├── trick-5.php ├── trick-6.php └── trick-7.php /README.md: -------------------------------------------------------------------------------- 1 | PHP Magic Tricks 2 | ================ 3 | 4 | *This repository is part of #sfugbln XMAS meetup on December 20th in Berlin* 5 | 6 | Credits to all anonymous php magicians on 3v4l.org 7 | 8 | What is this? 9 | ------------- 10 | 11 | * this repository contains 5 small code snippets with PHP magic in it 12 | * at the bottom of every snippet is a definition of expected output 13 | * in every file you will find a `Insert Magic Code Here` comment as placeholder 14 | * the length of the comment represents the length of my solution 15 | * there might be multiple solutions per snippet 16 | 17 | Rules 18 | ----- 19 | 20 | * Do not terminate execution of the script by using `return`, `die()`, `exit()`, `__halt_compiler()` or similar 21 | * All code lines shall be executed on runtime 22 | 23 | How to play? 24 | ------------ 25 | 26 | * try to find a solution for one snippet 27 | * open a PR with your solution 28 | * I will reveal my solutions later on the evening 29 | -------------------------------------------------------------------------------- /trick-1.php: -------------------------------------------------------------------------------- 1 |