Changed data type struct to array since PHP has no structs