I have 2 projects that'll like to share functions. Function-A, in project-A, should be called by function-B, in project-B. Any quickest way to achieve it?
Example function-A
function upload($file, $path){
$CFG->file = $file;
$CFG->path = $path;
}
How do I call this function in function-B, project-B
function callUpload( ){
upload( "a.png", "application/path/file" );
}