Re: [PHP] Making array to string

2008-09-17 Thread Eric Gorr
On Sep 17, 2008, at 10:54 AM, Nathan Rixham wrote: Eric Gorr wrote: On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoon", 2 => "Good evening", 3 =>

Re: [PHP] Making array to string

2008-09-17 Thread Nathan Rixham
Eric Gorr wrote: On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoon", 2 => "Good evening", 3 => "Good night" ); Now I would like to convert the arr

Re: [PHP] Making array to string

2008-09-17 Thread Eric Gorr
On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoon", 2 => "Good evening", 3 => "Good night" ); Now I would like to convert the array to something l

Re: [PHP] Making array to string

2008-09-17 Thread Hunt Jon
Wow! Thanks all. It seems `implode` is what I wanted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making array to string

2008-09-17 Thread Aschwin Wesselius
Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoon", 2 => "Good evening", 3 => "Good night" ); Now I would like to convert the array to something like: "Good morning Good afternoo

RE: [PHP] Making array to string

2008-09-17 Thread Jay Blanchard
[snip] Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoon", 2 => "Good evening", 3 => "Good night" ); Now I would like to convert the array to something like: "Good morning Good afternoon Good even