Re: Column -> array
| From: | David Treves | Date: | Sun, 04 Jun 2000 08:28:27 +0000 |
| Subject: | Re: Column -> array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-967@lists.php.net to get a copy of this message | ||
Use the following function:
$arr=explode("\n","192.168.42.0.0\n192.168.42.0.1\n192.168.42.0.2");
this will create an array named $arr with the elements you need.
Sincerely,
David Treves.
----- Original Message -----
From: Leon Mergen <leon@solatis.com>
To: <php-general@lists.php.net>
Sent: Saturday, June 03, 2000 5:22 PM
Subject: [PHP-GENERAL] Column -> array
Hello,
I have a column, that contains some IP addresses like this :
192.168.42.0.0\n192.168.42.0.1\n192.168.42.0.2
etc (so actually every IP address starts on a new line)
How can I create an array and make every IP address a new element of the
array?
Carpe Diem,
- Leon (ICQ # 55677353)
http://www.solatis.com/ <- free webmaster resources!
http://www.coolguest.com/ <- free guestbooks for your
site!
http://www.ffalp.com/ <- create your own free mini-yahoo
----
I haven't lost my mind!
I've got it on tape somewhere...
----