BetaCodeShareBeta

by Code Solutions Project

Simple solutions for common problems

Description:Build all paths from assets
PHP
JoseluCross
function buildAssets(array $folders,array $assets){
    $buildAssets = array();
    foreach($folder as $folders){
        foreach($value as $asset){
            array_push($buildAsset,$foder."/".$value)
        }
    }
    return $buildAsets;
}

Input example

folder => {"frontend","backend"}
assets => {"js","img","css","fonts"}

Output example

{"frontend/js","frontend/img","frontend/css"...}
×Oh snap! Something wrong