encode() encode() : array Returns associative array, representing the View query. Returns array — object which is ready to be serialized.