All PHP inbuild functions

Discussion in 'PHP' started by Meglepett, Apr 27, 2014.

  1. #1
    Is there a list available for download with all php5 inbuilt functions?

    Not looking for one specific function, I need all available PHP command in a txt file line by line.
     
    Solved! View solution.
    Meglepett, Apr 27, 2014 IP
  2. #2
    
    <?php
    
    if (!$fp = @fopen('functions.txt', 'a'))
    {
        exit('Unable to open file');
    }
    
    foreach (get_defined_functions()['internal'] AS $name)
    {
        fwrite($fp, "{$name}\n");
    }
    
    fclose($fp);
    
    PHP:
    Note: This will write all available functions on your machine to the file. Including those from extensions you may have installed.
     
    nico_swd, Apr 27, 2014 IP
    deathshadow, ThePHPMaster and Vooler like this.
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    What's wrong with php.net?
     
    PoPSiCLe, Apr 27, 2014 IP
  4. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #4
    php.net is the best to see all the functions with details and examples as well..
     
    salmanshafiq, Apr 28, 2014 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    The OP asked for a text file containing all available functions, one per line. Not sure how php.net helps here.
     
    nico_swd, Apr 28, 2014 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #6
    I'm curious about what you'll use the list for - it'll be enormous!
     
    sarahk, Apr 29, 2014 IP