Serialize R to PHP associative array