Tag Archives: variables

php function variables GOTCHA


When you are using tricky-slick variable variables with php ( ${$varName} ) and you’re trying to do it from within a function, make SURE the variable’s name who you’re trying to get is not OUTSIDE the function – if it is, you’ll spend 3 hours trying to figure out how that variable could possibly not be defined. teh heh. Wish I weren’t such a newbie!