Carbon is a PHP library that provides a simple API extension for DateTime. It provides a fluent, easy-to-use API for creating and manipulating dates and times.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$condition = 'false'; // string length is evaluated to true | |
if ($condition) { | |
// true | |
} | |
$condition = ''; // string length is zero, so it is evaluated to false | |
if ($condition) { | |
// false | |
} |