Since 1998
Home > Science & Technology > Information Technology > PHP > Tips & tricks
2 topics:

In PHP, the switch statement manages a string and case 0 quite unorthodoxically (1090 views)

I bumped into a wicked behaviour of the switch statement in PHP; it considers that any string equals 0 if the integer case 0 is encountered first.
created Tuesday 05 November 2013
revised Sunday 26 February 2017

Plural management in PHP: my plural functions (8419 views)

If like me you are a bit pedantic as regards orthography, even in texts, blogs, but especially in search results, for sure you have noticed, not to say shocked by, bits like“1 results found”, or even "the selected files image1.jpg have been deleted".  Of course there is...read more >>

created Tuesday 11 March 2014
revised Saturday 11 February 2017
Would you accept our confidentiality policy? It is about cookies and personal data...