String value object

It's an OO string wrapper. Used to intercept string updates.

 Methods

Object constructor

__construct(string $value, \Zend\Memory\Container\Movable $container) 

Parameters

$value

string

To string conversion

__toString() : string

Returns

string

Countable

count() : int

Returns

int

ArrayAccess interface method returns true if string offset exists

offsetExists(int $offset) : bool

Parameters

$offset

int

Returns

bool

ArrayAccess interface method Get character at $offset position

offsetGet(int $offset) : string

Parameters

$offset

int

Returns

string

ArrayAccess interface method Set character at $offset position

offsetSet(int $offset, string $char) 

Parameters

$offset

int

$char

string

ArrayAccess interface method Unset character at $offset position

offsetUnset(int $offset) 

Parameters

$offset

int

 Properties

 

Container

$container : \Zend\Memory\Container\Movable

 

Boolean flag which signals to trace value modifications

$trace : bool

 

Value

$value : string