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:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 5:45 PM
To: [EMAIL PROTECTED]
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:
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to