What is askTFM || Contact (E-Mail)
askTFM PHP
What I have:
  • help
  • example




  • What I want:


    A Short Tutorial:

    askTFM is meant to assist in the task of locating a standard/builtin function or operation. The conventional way of doing so is asking the programmer near you, or guessing a relevant keyword and searching the manual/google. I can't compete with the first option, but I do supply an alternative for the second: search the function by example. You know how the function is supposed to behave. So find a concrete example, and use askTFM to find the function for it.

    There are 3 trivial steps for using askTFM:

    1. locating a problem.
    2. formning a concrete example.
    3. asking.

    Let's look at a few practical examples:

    1 locate a problem "I need to remove the whitespaces from the end of a string"
    2 form a concrete example "Turn 'abc   ' into 'abc' "
    3 askTFM put 'abc   ' in "What I have"
    put 'abc' in "What I need"
    and click on "Find It".


    1 locate a problem "Hmm.. I need to replace a part of a string"
    2 form a concrete example "Change 'this' into 'that' in the string 'replace this'"
    3 askTFM What I have: 'this', 'that', 'replace this'.
    What I need: 'replace that'.
    Find It.


    1 locate a problem: "I need to sort an array by it keys"
    2 form a concrete example "The array ['2' => 'two', '1' => 'one', '3' => 'three'] should be sorted as ['1' => 'one', '2' => 'two', '3' => 'three']"
    3 askTFM What I have: array('2' => 'two', '1' => 'one', '3' => 'three')
    What I have: array('1' => 'one', '2' => 'two', '3' => 'three')
    Find It.



    asktfm.com, (c) Yoav Goldberg, 2005