public function serialize(array $unserialized = null)
    {

        // initialize the array
        $attributes = array();

        if (is_array($unserialized)) {
            // serialize the key/value pairs into the array
            foreach ($unserialized as $attributeCode => $attributeValue) {
                $attributes[] = implode('=', array($attributeCode, $attributeValue));
            }
        }

        // serialize the array itself
        return $this->implode($attributes);
    }
public function serialize(array $unserialized = null)
    {

        // initialize the array
        $attributes = array();

        if (is_array($unserialized)) {
            // serialize the key/value pairs into the array
            foreach ($unserialized as $attributeCode => $attributeValue) {
                $attributes[] = implode('=', array($attributeCode, $attributeValue));
            }
        }

        // serialize the array itself
        return $this->implode($attributes);
    }
public function serialize ( array $ unserialized = null ) { // initialize the array $ attributes = array ( ) ; if ( is_array ( $ unserialized ) ) { // serialize the key/value pairs into the array foreach ( $ unserialized as $ attributeCode => $ attributeValue ) { $ attributes [ ] = implode ( '=' , array ( $ attributeCode , $ attributeValue ) ) ; } } // serialize the array itself return $ this -> implode ( $ attributes ) ; }
Serializes the elements of the passed array.

@param array|null $unserialized The serialized data

@return string The serialized array
@see \TechDivision\Import\Serializers\SerializerInterface::serialize()
Serializes the elements of the passed array .