Hello
I wish to get from
$uptime = "05:54:13 up 1:54, 2 users, load average: 0.60, 0.47, 0.40";
only the first value of load average , 0.60
Anyone can help me ?
something along these lines will work.
<?php preg_match( "/[0-9]+\.[0-9]+/" , "05:54:13 up 1:54, 2 users, load average: 0.60, 0.47, 0.40" , $a ) ; print_r($a); ?>