Class methods in PHP
===

I am coming from the Ruby world and I have a PHP project I currently work on. 

Like in Ruby scripts, is it possible to declare class methods in PHP? Basically, I'm asking what the equivalent of the following code would be in PHP

    class A
      def hello; "hello from object"; end
      def self.hello; "hello from class"; end
    end

Note the difference between the instance method and the class method.