mediawiki's Special: Recent Changes bug · 100 days ago
If you’re wondering why your RecentChanges doesn’t go back to 30 or even 14 days, but just to 7 days, then your answer is probably $wgRCMaxAge.
Extending phpDocumentor with custom tags · 138 days ago
phpDocumentor offers a decent HowTo add your own Converters for phpDocumentor, but I despaired trying to find pre-existing information on how to add custom tags once the subject cropped up at work. If you’re in a similar situation, this article may be of help.
void and null function 'returns' in PHP · 169 days ago
In case you were ever wondering what functions that pretend to be procedures return when used as a function, the answer is: NULL. That’s all there is to it.
PHP loose type comparison: Arrays · 173 days ago
PHP (5.3.0) does something very interesting with arrays if you loose-compare them. It’s thorough – it does recursions – and it tests array elements not only for (loose) equivalence, but also for emptiness
Quick PHP block comment toggle · 173 days ago
Probably obvious, but I like occasionally stating said obvious, given the amounts of time other people doing the same thing has helped me.
If you want to be able to quickly comment in and out recurring blocks in your code, e.g. for testing purposes, replace your simple closing */ with a //*/, e.g.
/* $this = is_a_block($of_code);
$commented = out_for($testing); //*/
Now, to toggle the block, all you need to do is add or remove the opening /*. Without it, the closing comment ‘tag’ is still a comment, this time in-line:
$this = is_a_block($of_code);
$commented = out_for($testing); //*/