Jump to content

Move arrays up


wotw

Recommended Posts

Problem with using is the array is built like this:

 

function files(){
$file_array = $this->files;
$files = array();
foreach($file_array as $value){
$files[] = $value['files'];
}
return $files;
}

 

That funcxtion is from a class file. That functiopn returns the array posted above. How can I make all the valueas into one array mate?

Link to comment
https://forums.phpfreaks.com/topic/273258-move-arrays-up/#findComment-1406924
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.