would do some inmput validation on the $people array .. this code does produce PHP Notices or even Warnings ib case the array does not fit the requirements