Thread: Better ATTR's
View Single Post
  #9  
Old 07-27-2011, 02:21 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Mark Sir Link View Post
I guess I should have been more specific, if you store an array of integers it will truncate the rest.
That's why you do

PHP Code:
p.attr[17] = @{1, 5, 8}; 
instead of

PHP Code:
p.attr[17] = {1, 5, 8}; 
and then reads it as a tokenized string on clientside to pretend that it is an array.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote