Learned about spl_object_hash via Stack Overflow. Provides a unique object id in PHP.
spl_object_hash
Reply
Learned about spl_object_hash via Stack Overflow. Provides a unique object id in PHP.
Reading about traits and grafts in PHP: Request for Comments: Horizontal Reuse for PHP, PHP Traits, Using Traits in PHP 5.4 and PHP Traits: Good or Bad?. They mentioned the Diamond Problem.
I learned some new syntax too! E.g.:
return $_instance ?: $_instance = new $class;
The ternary operator as a ‘binary’ operator! Cool! See here for details: Since PHP 5.3, it is possible to leave out the middle part of the ternary operator.
The trance mix I’m listening to at the moment is repeating: “Observe, and act with clarity.” — Great lyrics! The track is reported as “Dimension 5 – Radio Mix” on the goapsy channel on di.fm.
Today I discovered the PHP range function…