RE: Re: Push an Array, Comma separated.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Louie Miranda [mailto:lmiranda@xxxxxxxxx]
> Sent: 01 July 2009 04:19
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  Re: Push an Array, Comma separated.
> 
> This is what I did. And it worked.
> 
> $saveFiles = array();
> $arrSize=sizeof($saveFiles);
>             for ($number = 0; $number < $arrSize; $number++) {
>                 $saveFilesDump = "$saveFiles[$number], ";
>                 echo "$saveFiles[$number], ";
>             }
> 
> File1.txt, File2.txt, File3.txt,


Oh! You mean:

    $saveFilesDump = implode(', ', $saveFiles);

I think everyone was confused by you using the word "push", which means something else entirely. (I know I was.)


Cheers!

Mike

 --
Mike Ford,  Electronic Information Developer,
C507, Leeds Metropolitan University, Civic Quarter Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 812 4730




To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux