Re: [PHP] Push an Array, Comma separated.

2009-06-30 Thread Richard Heyes
> My array: > Array ( [0] => Demo2.txt [1] => Demo.txt [2] => Demo.txt ) > > How could I push the values as: > > -> Demo2.txt, Demo.txt, Demo.txt? > > Not sure which approach is good. > > $saveFiles = array(); > array_push($saveFiles, $ufName); you could use array_push(), or the shorter syntax:

[PHP] Push an Array, Comma separated.

2009-06-30 Thread Louie Miranda
GPS Administrative Page v2.3.12 (BETA)My array: Array ( [0] => Demo2.txt [1] => Demo.txt [2] => Demo.txt ) How could I push the values as: -> Demo2.txt, Demo.txt, Demo.txt? Not sure which approach is good. $saveFiles = array(); array_push($saveFiles, $ufName); Help -- Louie Miranda (lmira...@g