public function serialize($payload)
    {
        $serialized = '';
        foreach ($payload as $line) {
            $serialized .= '"' . implode('","', $line) . '"' . "\n";
        }
        return $serialized;
    }
public function serialize($payload)
    {
        $serialized = '';
        foreach ($payload as $line) {
            $serialized .= '"' . implode('","', $line) . '"' . "\n";
        }
        return $serialized;
    }
public function serialize ( $ payload ) { $ serialized = '' ; foreach ( $ payload as $ line ) { $ serialized .= '"' . implode ( '","' , $ line ) . '"' . "\n" ; } return $ serialized ; }
Takes a two dimensional array and turns it
into a serialized string to include as the
body of a request

@param mixed $payload
@return string
Takes a two dimensional array and turns it into a serialized string to include as the body of a request