note 33270 deleted from function.mysql-stat by didou

From: Date: Thu, 03 Jul 2003 08:14:59 +0000
Subject: note 33270 deleted from function.mysql-stat by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-51408@lists.php.net to get a copy of this message
Note Submitter: Frank ---- Mike, your script is correct, though I have a small remark. With your solution the descriptions and values will all have a different index in the array: array[0] = Uptime array[1] = 5380 etc. With: $stat = explode(' ',mysql_stat($conn_id)); list($stat[6],$stat[7]) = preg_split('/\s(Q.+)/',$stat[6],-1,PREG_SPLIT_DELIM_CAPTURE); that's solved (2 spaces as first argument in the explode function).

« previous php.notes (#51408) next »