56 users online (0 members and 56 guests)  


  Results 1 to 3 of 3

Related

  1. parsing string    Forum: CGI Perl Forum
    Replies: 1
  2. convert a perl variable to javascript variable    Forum: Javascript Forum
    Replies: 0
  3. Array to string    Forum: PHP Forum
    Replies: 3
  4. Replies: 5
  5. unusual string    Forum: Javascript Forum
    Replies: 2
  1. #1
    montyauto's Avatar
    Disabled

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    9

    Can I get a variable name as a string?

    how do i get a variable name as a string e.g i have a variable
    Code:
    myvar:1 2 5 3 2 6 7 8
    i want to get "myvar"

  2. #2
    Gargamel's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2007
    Location
    Melbourne, Australia
    Posts
    1

    Re: Can I get a variable name as a string?

    Check out this link, it is exactly what you have been looking for. I have been trying to solve this problem too, stumbled apon this post trying to find the answer.
    Finally i found the solution.

    just follow the link, it's all explained there.

    http://php.net/manual/en/language.variables.php#49997

    Hope it works for you and anybody else that finds this post.
    Last edited by HTML; 03-08-2012 at 11:25 AM.

  3. #3
    montyauto's Avatar
    Disabled

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    9

    Re: Can I get a variable name as a string?

    I've checked thru your link.
    I found the answer. Thanks.
    Last edited by montyauto; 02-27-2007 at 02:29 AM.



Tags for this Thread