Php String Loop Through Object Properties