<?php Class TestClass{}; $data = new TestClass(); if ( is_object($data) ) { print "object"; } else { print "not object"; } ?>