3 ms·
While you're at it, convert intrinsic types to objects too, while retaining backwards compatibility: $foo = 'bar'; echo $foo->length(); // 3 echo s
by dan15 13y ago
While you're at it, convert intrinsic types to objects too, while retaining backwards compatibility:
$foo = 'bar';
echo $foo->length(); // 3
echo strlen($foo); // 3
This would get rid of a lot of the confusion around string function names.