Ruby Parse String Into Array In Php