http://stackoverflow.com/questions/15868123/php-foreach-loop-doesnt-pass-although-data-in-array