Re: need help with php [message #445246 is a reply to message #445240] |
Thu, 24 March 2011 14:16 |
|
Spyder
Messages: 1070 Registered: March 2006
Karma:
|
General (1 Star) |
|
|
EvilWhiteDragon wrote on Thu, 24 March 2011 14:47 |
renalpha wrote on Thu, 24 March 2011 14:43 | got it
$mainmenuget[''.$getlang.'']
|
$mainmenuget[$getlang] is better and should work as well. Now you're casting it to a (empty) string, add the content of the var to the string and then adding another empty string to that. Not very useful or efficient.
|
What EvilWhiteDragon said. Also, it wouldn't be a bad idea to read some articles on efficient coding and speeding up your scripts, they often come with handy tips you can use in any situation when coding with php.
|
|
|