SQL NULLs are Weird!
Here are some special cases that you should keep in mind when working with NULL.
Read more [raymondtukpe.com]
Posts tagged with quirky
Here are some special cases that you should keep in mind when working with NULL.
Read more [raymondtukpe.com]
Here are some examples of weird timezones
Read more [ssoready.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Freek publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"
Probably you'll never use this way of sorting in a real app, but it's kinda cool that it'll work.
Read more [kevlinhenney.medium.com]
?♂️So you think that code always flows through either the if or else branch in a PHP script?
— Freek Van der Herten (@freekmurze) June 13, 2018
Hold my ?
----
<?php$pid = pcntl_fork();
if ($pid) {
echo 'in if';
}
else {
echo 'in else';
}
----
Try it out!#processcontrol #fun
Read more [twitter.com]
Q: What does this code return?
date('Y-m-d',strtotime('00-00-00'));
A: 1999-11-30
B: 0001-01-01
C: 2001-01-01
The correct answer is A: 1999-11-30.
You'll find the reasoning behind this result as a comment on this bug report.
There is no bug here, 00-00-00 means 2000-00-00, which is 1999-12-00, which is 1999-11-30. No bug, perfectly normal.