Bash Loop Through Array Php Functions W3schools