Converting Object To Array Php Functions For Mysql