"Foreach" iteration is applicable to arrays and objects only.
http://www.php.net/manual/en/control-structures.foreach.php