I found an interesting PHP Challenge on TalkPHP and PHPClub.The challenge is that you need to make a multiplication table (you remember those form being a kid in school, I imagine) but there are some conditions.
- No PHP functions used at all (both built-in and extensions)
- No language constructs for outputting data used at all (like echo, print, var_dump, print_r etc (even inside variable functions). Consider they don’t exist
- No <?= ?> tags used
- No HTML, no JavaScript. Consider script is run from console
- No file includes used (require, include, readfile etc.)
- Simple stupid output of the whole example at once is considered stupid and is not considered as solution ;)
Those are the conditions you must follow in writing a solution. I can honestly say I don’t have a solution yet, but even so, I have part of it down. I’m just stumped on the output but not all at once.
Update
I did find a solution but not on my own. It’s actually very clever. I wouldn’t have thought of such a thing.