Php String Loop Through Object Jquery Validation W3schools