$c = new Categorias(); $c->obtenerCategorias();
echo $c;
Object of class Categorias could not be converted to string