What does RETURN TRUE do in a php function?

Posted by Imran on Stack Overflow See other posts from Stack Overflow or by Imran
Published on 2010-04-14T10:57:37Z Indexed on 2010/04/14 11:03 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

I was just looking at this code and i don't understand what RETURN TRUE does or what the point of it is? Can someone please explain?

class Elephpant {

    public $colour;

    public function dance() {
        echo "elephpant dances!\n";
        return true;
    }
}

Thankyou in advance ;-)

© Stack Overflow or respective owner

Related posts about php

Related posts about php5