Results 1 to 2 of 2

Thread: Calling Non-Static Method inside Static Method

Threaded View

  1. #1
    Join Date
    Sep 2006

    Question Calling Static Method inside non-Static Method


    I would like to know if the following is correct way of doing?

    PHP Code:
    class Foo
        static public function 
    Hello() {

        public function 
    self::Hello() .' World';

    Here I am calling a static method inside a non-static method. It works for sure, but just wanted to confirm if its correct way??

    Last edited by phantom007; 06-03-2014 at 03:06 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles