Bash Loop Through Array Php To Json Converter To Text