check explode() ;) http://www.php.net/manual/en/function.explode.php
Regrads, Khalid Al-kary
Hi-
I'd like to parse the string returned by popen("uptime", "r");. The string
that is returned is:
9:47am up 37 days, 16:24, 1 user, load average: 0.09, 0.02, 0.00
What I'd like is 5 strings...the first contains "37 days, 16:24", the second
"1 user", the third "0.09", the fourth "0.02", and the fifth "0.00".
Any easy way to do this? Thanks very much in advance!
-Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php