protected function convertValue($value)
    {
        if (!is_array($value)) {
            return $value;
        }

        $result = 'array(';
        $values = array();
        foreach ($value as $key => $val) {
            $values[] .= sprintf("'%s' => %s", $key, $this->convertValue($val));
        }

        $result .= implode(",", $values);
        $result .= ')';

        return $result;
    }
protected function convertValue($value)
    {
        if (!is_array($value)) {
            return $value;
        }

        $result = 'array(';
        $values = array();
        foreach ($value as $key => $val) {
            $values[] .= sprintf("'%s' => %s", $key, $this->convertValue($val));
        }

        $result .= implode(",", $values);
        $result .= ')';

        return $result;
    }
protected function convertValue ( $ value ) { if ( ! is_array ( $ value ) ) { return $ value ; } $ result = 'array(' ; $ values = array ( ) ; foreach ( $ value as $ key => $ val ) { $ values [ ] .= sprintf ( "'%s' => %s" , $ key , $ this -> convertValue ( $ val ) ) ; } $ result .= implode ( "," , $ values ) ; $ result .= ')' ; return $ result ; }
Converts a value to its php representation.

@param mixed $value

@return object|integer|double|string|null|boolean
Converts a value to its php representation .