There should be a space after foreach keyword,