select part of the value from database in php code example Example: php + get sql query echo $select->__toString();