PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php print_r(mysqli_get_client_stats()['active_connections']); echo PHP_EOL; $result = $mysqli->query('SHOW SESSION STATUS;', MYSQLI_USE_RESULT); while ($row = $result->fetch_assoc()) { $array[$row['Variable_name']] = $row['Value']; } $result->close(); print_r($array['Threads_connected']);
Show:  
Copy Clear