DEV Community

techieteko
techieteko

Posted on

how can i select those files

how can i select those files

0

i try array_map but did not work ;

Write the code of the goodExtension function which receives as argument the $files parameter the function must return an indexed array without a key this array must contain only file names with the extension .PHP and .JS

function goodExtention(Array $files){
}

$files

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay