added a helper method to convert php array into a colection type string for input into some steps