Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is function in PHP?

    Please guide me what is function and how we implement in PHP?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    http://php.ca/manual/en/language.functions.php
    Functions are nothing more than reusable chunks of code that accept variable input and provide variable output. Functions are synonymous to other languages which may refer to them as subroutines, or in object oriented languages they are methods. PHP supports no ability to overload its function nor methods.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    New Coder
    Join Date
    Oct 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here, You can find all the functions for PHP. Refer below link for getting idea http://www.w3schools.com/php/php_functions.asp

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,091
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Quote Originally Posted by Fou-Lu View Post
    PHP supports no ability to overload its function nor methods.
    Thats the one thing I dislike with php. It's just daft if you ask me but hey ho..

    Quote Originally Posted by paulinetaylor85 View Post
    Here, You can find all the functions for PHP. Refer below link for getting idea http://www.w3schools.com/php/php_functions.asp
    That is no way near all the functions for php. The best php manual is the official one at www.php.net

    As Fou says..: http://www.php.net/manual/en/funcref.php

    The w3 schools are IMO useless. Sure, they're a very gentle break-me-in way of learning but they are not a solid way of learning php at all.
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!


  •  

    Posting Permissions

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