Gaming Perfection
Member
Hi,
I'm trying to create an add-on that uses multi-selection check boxes (such as admin.php?options/edit-option/spamDefaultOptions).
I've managed to get the output I want by simply editing the sub-array names to be what I want and then using the following in my template;
However, I don't really understand what the values in array mean.
I have figured out that a:5 is because you have 5 array sub-options and the numbers in quotes (1 or 0) appear to dictate whether the check box should be checked (1) or unchecked (0) by default. It is the rest of the letters/numbers I don't understand, s:1, s:9, etc.
What does these values mean? Any help greatly appreciated.
I'm trying to create an add-on that uses multi-selection check boxes (such as admin.php?options/edit-option/spamDefaultOptions).
I've managed to get the output I want by simply editing the sub-array names to be what I want and then using the following in my template;
AddOn_Template said:<xen:if is="{xen:checked $xenOptions.Option ID.Array Sub-Option}">Content</xen:if>
However, I don't really understand what the values in array mean.
admin.php?options/edit-option/spamDefaultOptions said:a:5:{s:8:"ban_user";s:1:"1";s:15:"delete_messages";s:1:"1";s:14:"action_threads";s:1:"1";s:9:"check_ips";s:1:"1";s:10:"email_user";s:1:"0";}
I have figured out that a:5 is because you have 5 array sub-options and the numbers in quotes (1 or 0) appear to dictate whether the check box should be checked (1) or unchecked (0) by default. It is the rest of the letters/numbers I don't understand, s:1, s:9, etc.
What does these values mean? Any help greatly appreciated.