Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » need help with php
Re: need help with php [message #445246 is a reply to message #445240] Thu, 24 March 2011 14:16 Go to previous message
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.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: svchost.exe has a trojan
Next Topic: Need help with my C++ code
Goto Forum:
  


Current Time: Thu May 23 01:19:30 MST 2024

Total time taken to generate the page: 3.18111 seconds