Type I want to generate an array like this.
array('nome1', 'nome2', 'nome3',)
What I have is the string $ name, how do I generate the above array?
would be something like
array($nome)
??
My code
if (!empty($_FILES['files'])) {
$string = str_replace(' ', '-', $len);
$new_name = convert_accented_characters($string);
for($i = 0; $i < $len; $i++) {
$fileSize = $_FILES['userfile']['name'][$i];
$string = str_replace(' ', '-', $fileSize);
$new_name = convert_accented_characters($string);
echo $new_name.'<br/>';
}
//Configure upload.
$this->upload->initialize(array(
"file_name" => array($new_name),
"upload_path" => './public/uploads/album/'. $past_date .'/'. $pasta .'/',
"allowed_types" => "mp3",
"max_size" => "2194304000"
));