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

Fetching metadata

Some services store a set of key-value pairs along with the item as metadata. Use the fetchMetadata() method to retrieve an item's metadata.

Example 105. Fetching metadata

<?php
$data 
$storage->fetchMetadata('/my/remote/path/picture.jpg');
foreach (
$data as $key => $value) {
    echo 
"Metadata $key$value\n";
}

Zend Framework