String value object

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

category Zend
package Zend_Memory

 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(integer $offset) : bool

Parameters

$offset

integer

Returns

bool

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

 

Boolean flag which signals to trace value modifications

$trace : bool

 

Value

$value : string