public function writeObject($object)
    {
        // Loop each element and write the name of the property.
        foreach ($object as $key => &$value) {
            // skip variables starting with an _ private transient
            if( $key[0] == "_") continue;
            $this->_stream->writeUTF($key);
            $this->writeTypeMarker($value);
        }

        // Write the end object flag
        $this->_stream->writeInt(0);
        $this->_stream->writeByte(Zend_Amf_Constants::AMF0_OBJECTTERM);
        return $this;
    }
public function writeObject($object)
    {
        // Loop each element and write the name of the property.
        foreach ($object as $key => &$value) {
            // skip variables starting with an _ private transient
            if( $key[0] == "_") continue;
            $this->_stream->writeUTF($key);
            $this->writeTypeMarker($value);
        }

        // Write the end object flag
        $this->_stream->writeInt(0);
        $this->_stream->writeByte(Zend_Amf_Constants::AMF0_OBJECTTERM);
        return $this;
    }
public function writeObject ( $ object ) { // Loop each element and write the name of the property. foreach ( $ object as $ key => & $ value ) { // skip variables starting with an _ private transient if ( $ key [ 0 ] == "_" ) continue ; $ this -> _stream -> writeUTF ( $ key ) ; $ this -> writeTypeMarker ( $ value ) ; } // Write the end object flag $ this -> _stream -> writeInt ( 0 ) ; $ this -> _stream -> writeByte ( Zend_Amf_Constants :: AMF0_OBJECTTERM ) ; return $ this ; }
Write a PHP array with string or mixed keys.

@param object $data
@return Zend_Amf_Parse_Amf0_Serializer
Write a PHP array with string or mixed keys .