SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    eez
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    recover the agrument names passed to a function inside that function? possible?

    Hey!

    Is it possible to recover the agrument names of the arguments passed to a function inside that same function?

    example :

    blabla($hehe, $huhu, $hihi);

    function blabla($a, $b, $c)
    {
    arg_name($a) = "hehe";
    arg_name($b) = "huhu";
    // ...
    }

    Is this possible (agr_name is an imaginary fn)

    Thx

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $a, $b and $c are the "argument names." $hehe, $huhu and $hihi are just variables you are passing to the function

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •