Searched all over to see if anyone had done this yet. I want to split the information from mysqli_stat()
up into items so I can echo them out on a new line for each item. Right now this command
printf("System status: %s\n", mysqli_stat($database));
Out puts like so
System status: Uptime: 58913 Threads: 1 Questions: 16008 Slow queries: 0 Opens: 476 Flush tables: 1 Open tables: 464 Queries per second avg: 0.271
Is there a way to break this into items so I can print them like so
System status
----------------
Uptime: 58913
Threads: 1
Questions: 16008
Slow queries: 0
Opens: 476
Flush tables: 1
Open tables: 464
Queries per second avg: 0.271
\$ms1:
\n"; You could also step through the array $ms1 if you want to format the output. – Sloan Thrasher Jan 16 '17 at 18:29