SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up can i get the name of the array????

    i'm having lots of arrays with values and i have a funtion which does some operations based on the array passed as an argument..

    (i.e) i want to check the name of the array and then do operations based on that.

    So i want to get the name of the array passed into the funtion .

    for eg:

    if $cutomer = array('sefdsf','sdfsdf','sdfsdf');
    i want to get the value 'customer'

    is there any function to do this???

  2. #2
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $GLOBALS[];
    contain all variable in the bage
    Open Blocked website
    Open Blocked Website
    Knowledge Is Knowing That A Tomato Is A Fruit,
    Wisdom Is Not Putting It In A Fruit Salad.


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
  •