change ojbect to php