$result = $c->query('SELECT user,host FROM mysql.user'); while ($row = $result- >fetch_assoc()) { printf("'%s'@'%s'\n", ...
php.net