pizza.class.php:
<?php
class pizza {
    var 
$ingredients = array();

    function 
get_price() {
        return 
4.12;
    }

    function 
set_ingredients($ingredients) {
        
$this->ingredients $ingredients;
    }
}
?>


Script (pizza-test.php):
<?php
$s 
= new SRM('/tmp/srm.socket');
$pizza = new SRMApp($s'pizza');

echo 
$pizza->get_price(), "\n";
$pizza->set_ingredients(
    array(
'cheese''cheese''cheese''cheese'));
?>