Foreach Loop Associative Array Php Functions Syntax In Java