Angular Loop Over Array Php Functions With Parameters