Foreach Loop using Array value