// Connect to the database $conn = mysqli_connect("localhost", "username", "password", "database"); // Query the database $sql = "SELECT * FROM users"; $result = mysqli_query($conn, $sql); // Get the total number of rows $num_rows = mysqli_num_rows($result); // Display the number of rows found echo "There are " . $num_rows . " rows in the result set.";In this example, we first connect to the database using the mysqli_connect function. We then execute a SELECT statement to retrieve all rows from the users table. The result of this query is stored in the $result variable. We then use the mysqli_num_rows function to get the total number of rows in the result set, which is stored in the $num_rows variable. Finally, we display the number of rows found using the echo statement. The numRows function is not a standalone package/library in PHP. It is a built-in function available in the mysqli database extension for PHP, which provides an object-oriented interface for accessing and managing MySQL databases.