Considering that is needed to create a library with some common functions, what would be considered a best practice, use a lib file with isolate functions like this:
function utilA(){
echo 'I am a lib with util A function';
}
function utilB(){
echo 'I am a lib with util B function';
}
function utilC(){
echo 'I am a lib with util C function';
}
Or create a class with static methods like this:
class Utils{
static function utilA(){
echo 'I am A static method from Utils';
}
static function utilB(){
echo 'I am B static method from Utils';
}
static function utilC(){
echo 'I am C static method from Utils';
}
}