PDA

View Full Version : Settings Datatype


Zaiaku
01-07-2010, 03:53 AM
Is there a list of datatypes that can be used for settings?

Also is there a way to store an array in one of those datatypes?

Dygear
01-07-2010, 05:22 AM
Due to PHP (The programming language vB is written in) variable handling, no variable has to be cast to any datatype. Most of the user fields are strings anyway, and you can store arrays in strings by using the string serialize (mixed $value) (http://php.net/manual/en/function.serialize.php) function, and return it back to an array with the mixed unserialize (string $str) (http://www.php.net/manual/en/function.unserialize.php) function.

But seeing as data casting was unknown to you, I would guess that your not a PHP programmer. So, this might seem hopelessly complex. I would love to help you further, but first I need to know what your trying to do.