I'm trying to make a function which accepts a value and echo them in the end.
Here's an example:
function number_of_files ($name) {
$name_of_files = array($name);
var_dump ($name_of_files);
}
And I'm using this function as
number_of_files("file.png");
number_of_files("audio.mp3");
I'm expecting the following output:
Array (
[0] => file.png
[1] => audio.mp3
)
Any suggestions why is it not working?