3 ms·
Just copying this from the docs, but you can pass an array of functions to mixin: __::mixin(array( 'capitalize'=> function($string) { return ucwords($str
by bwh2 15y ago
Just copying this from the docs, but you can pass an array of functions to mixin:
__::mixin(array(
'capitalize'=> function($string) { return ucwords($string); }
));
__::capitalize('moe'); // 'Moe'