String value object

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

package Default

 Methods

Object constructor

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

Parameters

$value

string

$container

\Zend\Memory\Container\Movable

To string conversion

__toString() : string

Returns

string

Countable

count() : integer

Returns

integer

ArrayAccess interface method returns true if string offset exists

offsetExists(integer $offset) : boolean

Parameters

$offset

integer

Returns

boolean

ArrayAccess interface method Get character at $offset position

offsetGet(integer $offset) : string

Parameters

$offset

integer

Returns

string

ArrayAccess interface method Set character at $offset position

offsetSet(integer $offset, string $char) 

Parameters

$offset

integer

$char

string

ArrayAccess interface method Unset character at $offset position

offsetUnset(integer $offset) 

Parameters

$offset

integer

 Properties

 

Container

$container : \Zend\Memory\Container\Movable

Default

 

Boolean flag which signals to trace value modifications

$trace : boolean

Default

 

Value

$value : string

Default