explode('/', $_SERVER['REQUEST_URI'])[4])); foreach ($comments as $c) { $comm = new Comment($c); $comm->i(); } } }