DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 17, 2018, 04:17:13 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Difference in $session  (Read 2797 times)
0 Members and 1 Guest are viewing this topic.
Odyssey
Guest
« on: June 25, 2004, 10:01:22 PM »

Going through the different mods, I've seen:

$session[ 'tablerow' ] [ 'cell' ]

and also...

$session[ tablerow ] [ cell ]


 ... What is the difference between the one with single quotes and the one that doesn't have them?
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #1 on: June 25, 2004, 10:13:22 PM »

The difference is that one has single quotes, and the other doesn't   Grin Grin Shocked

They both work the same way, and this is an inconsistency throughout the files which was previously commented on my somebody else.  Kendaer has indicated that these are (or will be) consistent throughout the .98 code.
Logged

Play the latest beta version here on DragonPrime
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #2 on: June 25, 2004, 10:14:05 PM »

You've seen [user] or ['user'] type usage?

Neither matter. They used to, but no longer. Now days it just depends on how your habits are.
Logged
Spider
Guest
« Reply #3 on: June 26, 2004, 04:05:01 AM »

neither matter, but really ['user'] is better, because it allows you to use funny characters as the variable name.  None of the variables in logd do of course, but if you work that way the option is open to you...
Logged
Kendaer
Guest
« Reply #4 on: June 26, 2004, 09:02:32 AM »

neither matter, but really ['user'] is better, because it allows you to use funny characters as the variable name.  None of the variables in logd do of course, but if you work that way the option is open to you...

Actually on some systems PHP will throw a notice level warning if you use [user] rather than ['user']

However, logd code is rife with other warnings (all at notice level) anyway, so we generally don't care, but we did fix all of the [user] uses into ['user'] for the 0.9.8 code.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
43 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search