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);
Add Comment
Please, Sign In to add comment