Jump to content


string to variable name

  • Please log in to reply
1 reply to this topic

#1 kkroo

  • Members
  • PipPip
  • Member
  • 25 posts

Posted 24 March 2006 - 11:09 AM

I have a function that gets the names of $lang arrays from a language file, the problem that i am facing is that i would like to print_r the array name that is returned from the function. But the function returns as a string, for example, $lang['Test']. What do i do so php reconizes it as a variable that represents an array and not a variable that represents a string?

#2 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 24 March 2006 - 02:30 PM

Can you post your code and a sample of the data. That may help us understand your question better. In the mean time you might want to look at [a href=\"http://us2.php.net/manual/en/language.variables.variable.php\" target=\"_blank\"]variable variables[/a].


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users