#1
  1. No Profile Picture
    php newbie
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2001
    Posts
    544
    Rep Power
    42

    How many functions does PHP have?


    Weird questions about PHP, dont know if it fits in the PHP forum or here. I am doing a class presentation about PHP and was wondering how many functions are there in PHP?
    "They have the internet on computers now" - Homer
  2. #2
  3. Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jun 2005
    Posts
    5,929
    Rep Power
    4856
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2006
    Posts
    2,254
    Rep Power
    1741
    Originally Posted by homerdooh
    I am doing a class presentation about PHP and was wondering how many functions are there in PHP?
    I don't know how many internal PHP functions there are, but are you distinguishing between the internal and extension functions? For example, it's common to use mysql functions, but they are provided by the mysql or mysqli extension.
    When you ask a question, be prepared to tell us: what have you tried? If you think you don't need to try anything, we will never be interested in helping you. If you agree with the link, and you refuse to answer that question, you are being a hypocrite.

    Need help with broken code? Your question should be like a good bug report: (1) It has the smallest number of steps to reproduce the problem you see (2) It tells us precisely what you expected to see and (3) It tells us what you saw and how it differed from what you expected. We need all three to help you.
    Want better answers? Tell us what you Googled for and what steps you took to answer your own question.
  6. #4
  7. No Profile Picture
    Banned
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Apr 2005
    Posts
    4,934
    Rep Power
    0
    Originally Posted by homerdooh
    Weird questions about PHP, dont know if it fits in the PHP forum or here. I am doing a class presentation about PHP and was wondering how many functions are there in PHP?
    Many many hundreds and thousands. Perhaps millions. Maybe more. The number could be simply astronomical. Big, very very big. Some might even say a lot.
  8. #5
  9. No Profile Picture
    php newbie
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2001
    Posts
    544
    Rep Power
    42
    Originally Posted by Oler1s
    I don't know how many internal PHP functions there are, but are you distinguishing between the internal and extension functions? For example, it's common to use mysql functions, but they are provided by the mysql or mysqli extension.
    These will be lay people i'll be presenting this to, they wont know the difference. I guess i'm asking about internal functions.
    "They have the internet on computers now" - Homer
  10. #6
  11. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Caro, Michigan
    Posts
    14,963
    Rep Power
    4576
    Just make up a friggin number then...
    -- Cigars, whiskey and wild, wild women. --
  12. #7
  13. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Location
    Gauteng, South Africa
    Posts
    395
    Rep Power
    165
    PHP has got one function, and that is to eradicate .NET

    Comments on this post

    • MoonFx agrees : I totally concur
  14. #8
  15. Trapped on the forums...help
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2003
    Location
    /Users/edman007
    Posts
    4,602
    Rep Power
    910
    well my auto-complete list for emacs has 4574 functions in it (its basically generated from the php CVS), but its a little outdated as i think that is as of 5.0.something, so my guess would be about 4650 +/- 100
    Last edited by edman007; November 2nd, 2006 at 06:14 PM.
  16. #9
  17. (retired)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2003
    Location
    The Laboratory
    Posts
    10,054
    Rep Power
    1391
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jan 2005
    Posts
    1,579
    Rep Power
    279
    As of 5.1.4 (4887), PHP 6 there are about 400 less than that, because many are being removed or moved to PECL!


    printf
  20. #11
  21. Rocking my php-ness
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Boston, MA
    Posts
    1,961
    Rep Power
    155
    I've got

    Code:
    php -v
    PHP 4.4.2 (cli) (built: Aug 28 2006 11:52:39)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
        with the ionCube PHP Loader v2.5.9, Copyright (c) 2002-2005, by ionCube Ltd., and
        with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend Technologies
    geeknet@dz4:~/public_html/gi_v5 > php -r '$f = get_defined_functions(); echo "Functions: ".count($f["internal"])."\n";'
    
    Functions: 1539
    With
    Code:
    php -m
    [PHP Modules]
    bcmath
    calendar
    ctype
    curl
    domxml
    ew
    exif
    ftp
    gd
    gettext
    iconv
    imap
    ionCube Loader
    mbstring
    mcrypt
    mhash
    ming
    mysql
    openssl
    overload
    pcre
    pdf
    pgsql
    posix
    pspell
    session
    sockets
    SourceGuardian
    standard
    swf
    tokenizer
    wddx
    xml
    xmlrpc
    xslt
    Zend Optimizer
    zip
    zlib
    
    [Zend Modules]
    Zend Optimizer
    the ionCube PHP Loader
    My new WebComic http://www.jjsunshines.com/
    The Geek Shall Inherit the Earth

    It is NOT ok to IM me with questions unless I told you it was ok via PM
  22. #12
  23. No Profile Picture
    php newbie
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2001
    Posts
    544
    Rep Power
    42
    Thanks guys!
    "They have the internet on computers now" - Homer
  24. #13
  25. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Caro, Michigan
    Posts
    14,963
    Rep Power
    4576
    Originally Posted by J_Tree
    PHP 4.4.2
    PHP4? Ever heard of upgrading, man??
    -- Cigars, whiskey and wild, wild women. --

IMN logo majestic logo threadwatch logo seochat tools logo