Etiqueta: string

Lightweight string wrapper

Lightweight string wrapper README <?php use GranamStringStringObject; use GranamStringExceptionsWrongParameterType; $string = new StringObject(12345.678); echo $string; // string '12345.678' try { new StringObject(fopen('foo', 'rb')); } catch (WrongParameterType $stringException) { // Expected scalar or object with __toString method on strict mode, got resource....