|
Author |
Message |
Milchbazi
Junior WebHelper
Joined: 11 Mar 2003
Posts: 15
Location: NH, USA
|
Posted:
Sat May 31, 2003 3:28 am (20 years, 10 months ago) |
|
Hello everybody!
Is it possible to get arrays out of a mysql database (without unserialize(); )? I mean I have strings in form of
Code: | $table1 = "23.1,45.7,43.8,14.9";
$table2 = "43.6,34.7,66.6,99.1,34.8"; |
and want to cut them on each comma to put them into an array.
Like that:
Code: | $table1 = array(23.1,45.7,43.8,14.9); |
So I can use every number.
Thx for your help!
Milchbazi
PS: It would be the best if I could use it in a function, because I need the same process a lot! |
________________________________ TS Designs
___________________________ |
|
|
|
Milchbazi
Junior WebHelper
Joined: 11 Mar 2003
Posts: 15
Location: NH, USA
|
Posted:
Sat May 31, 2003 3:37 am (20 years, 10 months ago) |
|
Helped myself already!
Code: | $table1 = explode(",",$table1); |
But do you have an other suggestion? let me know!
See you!
Milchbazi |
________________________________ TS Designs
___________________________ |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 31, 2003 7:54 am (20 years, 10 months ago) |
|
Hi Milchbazi,
That is the best way to do it that I know of, and it is the way I'm using here at 4WebHelp for tutorial authors who have multiple websites.
Daniel |
________________________________
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.119401 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |