PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Memory container 'value' property

Use the memory container (movable or locked) 'value' property to operate with memory object data:

<?php
$memObject 
$memoryManager->create($data);

echo 
$memObject->value;

$memObject->value $newValue;

$memObject->value[$index] = '_';

echo 
ord($memObject->value[$index1]);

$memObject->value substr($memObject->value$start$length);

An alternative way to access memory object data is to use the getRef() method. This method must be used for PHP versions before 5.2. It also may have to be used in some other cases for performance reasons.

Zend Framework