why not this:
``` $types[] = $row; ```
?