class do{
function do_something($what){
...
echo $what;
}
function do_other_stuff($what){
...
echo $what;
}
}
if(do::do_something('whatever'))...
또는 do::do_other_stuff('whatever')...
같은 클래스를 사용하는 점이 있습니까?
기본적으로 함수가 클래스 외부에있는 경우 함수를 사용하는 것과 같습니다.
[정적 방법 대 기능]의 가능한 중복 (http://stackoverflow.com/questions/4690478/functions-vs-static-methods) 질문에 대답하지 않습니다 –