RE: [PHP] Explain?
| From: | Martin Towell | Date: | Thu, 01 Aug 2002 03:43:06 +0000 |
| Subject: | RE: [PHP] Explain? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110616@lists.php.net to get a copy of this message | ||
Split() chops up the string (param #2) according to param #1 (in this case,
space is the delimiter). Param #3 says, don't chop more than two bits. It
then returns an array
list() assigns $arr[0] to the first variable, $arr[1] to the second, etc.
HTH
Martin
-----Original Message-----
From: Mantas Kriauciunas [mailto:Mantuks@attbi.com]
Sent: Wednesday, July 31, 2002 5:45 PM
To: php-general@lists.php.net
Subject: [PHP] Explain?
Hey php-general,
maybe somebody can explain me what happens in this line? because how
mutch i read it..thought i don't get it :)
list ($date, $laik) = split (' ', $row['time'], 2);
--
Best regards,
Mantas
Contacts:
Mantuks@attbi.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php