Apache & PHP: Headache with POST / GET · 1690 days ago

Occasionally, you may have the misfortune of writing scripts wherein PHP seems to be able to retrieve GET values without issue, but POST values are lost in some netherworld.

[…]

Comment

---

Extending phpDocumentor with custom tags · 2468 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.

[…]

Comment

---

void and null function 'returns' in PHP · 2499 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.

[…]

Comment

---

PHP loose type comparison: Arrays · 2503 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

[…]

Comment

---

Quick PHP block comment toggle · 2503 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); //*/

Comment [1]

---