4 ms·
http://www.reddit.com/r/programming/comments/dst56/today_i_learned_about_php_variable_variables/c12np38 http://www.reddit.com/r/programming/comments/dst56/today
by nbpoole 15y ago
http://www.reddit.com/r/programming/comments/dst56/today_i_learned_about_php_variable_variables/c12np38 http://www.reddit.com/r/programming/comments/dst56/today_i_l...
One of the code examples from here might be good if you're looking to scare people :-P
Edit: I have a more serious suggestion. Why not pick 8 lines from your own codebase?
- ecaron 15y agoI have been playing with that, the problem is that everything is really just cool within its context. We also try to follow the logic that good code must be easy to understand, not the kind of magic code that works great but can't be debugged. Put that code on the wall and it is, well, boring. The sample I started with is kind of a magic-method interpretation of how our system works: <?php $jobs = array(); foreach (Companies::getAll AS $company) { array_push($jobs, $company->getJobs(); } $results = Search::fromKeyword($jobs); foreach ($results AS $result) { $result->displayJob(); }