Convert google response to php