Re: Parsing a string
| From: | Khalid El-Kary | Date: | Fri, 03 Jan 2003 15:42:48 +0000 |
| Subject: | Re: Parsing a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130109@lists.php.net to get a copy of this message | ||
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