SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- If non-static method can be static without any bad impact on code?
- class student{
- public static function getStudentName($studentID){
- ....
- return $studentName;
- }
- }
- $stuName = student::getStudentName($stuID)
- $instance = student::find($id);
- $name = $instance->name();
- $name = student::find_and_return_the_name($id);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.