Press "Enter" to skip to content

No need to return null

There is no need to return null within the function. It there is no return specified at the end of the function, null is assumed to be returned;

i.e. No return value in PHP is identical to NULL

In the documentation it says,

If the return is omitted the value NULL will be returned.

But it is always a better idea to return some Boolean values to indicate that the function worked as it was supposed to.

Everything is awesome.



  1. Hey there! I just want to give you a huge thumbs up for
    the great info you have right here on this post. I will be coming back to your web site for more soon.

  2. Sling TV
    Sling TV November 15, 2018

    Neat blog! Is your theme custom made or did you download
    it from somewhere? A theme like yours with a few simple adjustements would really make my blog shine.

    Please let me know where you got your design. With thanks

  3. Sling TV
    Sling TV November 15, 2018

    Sweet blog! I found it while browsing on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?

    I’ve been trying for a while but I never seem to get there!

  4. Sling TV
    Sling TV November 15, 2018

    What’s up to all, as I am in fact keen of reading this weblog’s post to be updated on a regular basis.
    It carries pleasant material.

  5. Write more, thats all I have to say. Literally, it seems as though you relied on the
    video to make your point. You obviously know what youre talking about, why waste your intelligence
    on just posting videos to your blog when you could be giving us something enlightening to read?

  6. Sling tv coupons and promo codes for november 2018
    I’m curious to find out what blog platform you have been utilizing?
    I’m having some minor security issues with my latest website and I’d like to find something more safeguarded.
    Do you have any solutions? Sling tv coupons and promo codes for
    november 2018

Leave a Reply

Your email address will not be published.