Memory/Value.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Memory
- Version
- $Id$
\Zend_Memory_Value
Package: Zend_Memory
String value object
It's an OO string wrapper.
Used to intercept string updates.
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Todo
- also implement Countable for PHP 5.1 but not yet to stay 5.0 compatible
Properties
Methods
__construct(string $value, \Zend_Memory_Container_Movable $container) : void
Object constructor
Parameters
Name | Type | Description |
---|---|---|
$value | string | |
$container | \Zend_Memory_Container_Movable |
offsetExists(integer $offset) : boolean
ArrayAccess interface method returns true if string offset exists
Parameters
Returns
Name | Type | Description |
---|---|---|
$offset | integer |
Type | Description |
---|---|
boolean |
offsetGet(integer $offset) : string
ArrayAccess interface method Get character at $offset position
Parameters
Returns
Name | Type | Description |
---|---|---|
$offset | integer |
Type | Description |
---|---|
string |
offsetSet(integer $offset, string $char) : void
ArrayAccess interface method Set character at $offset position
Parameters
Name | Type | Description |
---|---|---|
$offset | integer | |
$char | string |