1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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 Notable Member

    Messages:
    2,507
    Likes Received:
    283
    Best Answers:
    90
    Trophy Points:
    275
    #3
    What's wrong with php.net?
     
    PoPSiCLe, Apr 27, 2014 IP
  4. salmanshafiq

    salmanshafiq Active Member

    Messages:
    201
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    78
    #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,149
    Likes Received:
    341
    Best Answers:
    18
    Trophy Points:
    325
    #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:
    18,982
    Likes Received:
    2,274
    Best Answers:
    56
    Trophy Points:
    615
    #6
    I'm curious about what you'll use the list for - it'll be enormous!
     
    sarahk, Apr 29, 2014 IP