Choosing the right PHP function for the job

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Smith

    Choosing the right PHP function for the job

    How do I choose/find the function that is right for what I want to do. I
    have been using the phpManual which is one of the reasons I came to PHP.

    I would like to know how to search for a function only knowing what you want
    to achieve with it. Say I want to have an array be stripped of all "&&"
    values. How would I find a function or see if one exists based on those
    requirements?

    Thanks.


  • ZeldorBlat

    #2
    Re: Choosing the right PHP function for the job

    I like using the online version of the docs, since it is always
    up-to-date, is easily searchable, and contains some valuable user
    comments. The function reference is grouped by category:



    If you click on a particular category (in your example, I'd say 'Array
    Functions' is a good place to start) you can quickly look though a list
    of available functions and get a quick idea of what each one does, as
    well as other useful info:



    Looking through the list, array_filter looks interesting.

    Comment

    • John Smith

      #3
      Re: Choosing the right PHP function for the job

      Hehe this is exactly why I came to php from C/C++. No need to go crazy
      looking for libraries when you can just do a search on the php doc page.

      Thanks.


      "ZeldorBlat " <zeldorblat@gma il.com> wrote in message
      news:1116736100 .469898.239080@ g47g2000cwa.goo glegroups.com.. .[color=blue]
      > I like using the online version of the docs, since it is always
      > up-to-date, is easily searchable, and contains some valuable user
      > comments. The function reference is grouped by category:
      >
      > http://www.php.net/manual/en/funcref.php
      >
      > If you click on a particular category (in your example, I'd say 'Array
      > Functions' is a good place to start) you can quickly look though a list
      > of available functions and get a quick idea of what each one does, as
      > well as other useful info:
      >
      > http://www.php.net/manual/en/ref.array.php
      >
      > Looking through the list, array_filter looks interesting.
      >[/color]


      Comment

      • Angelos

        #4
        Re: Choosing the right PHP function for the job

        > Hehe this is exactly why I came to php from C/C++. No need to go crazy[color=blue]
        > looking for libraries when you can just do a search on the php doc page.
        >
        > Thanks.[/color]

        It is the same with java.sun
        I find it a little bit more helpfull as well.... but ....
        I am using PHP as well so... Something bad Java must be had !!!!

        Angelos


        Comment

        Working...