Bir dizinden dosyaları dahil

0 Cevap

(A), (b) üzerinde herhangi bir yarar var mı?

a) A function that returns the path to the file.

include util("array");

function util($name)
{
    return PATH."utils/$name.php";
}

b) A function that directly includes the file.

util("array");

function util($name)
{
    include PATH."utils/$name.php";
}

0 Cevap