I have looked inside Wordpress database.
Example:
In wp_options
table, option_name
column, active_plugins
row, its option_value
is
a:7:{i:0;s:27:"clean-html/cleanup-html.php";i:1;s:59:"force-regenerate-thumbnails/force-regenerate-thumbnails.php";i:2;s:36:"google-sitemap-generator/sitemap.php";i:3;s:39:"thumbnail-upscale/thumbnail-upscale.php";i:4;s:24:"wordpress-seo/wp-seo.php";i:5;s:27:"wp-super-cache/wp-cache.php";i:6;s:19:"wptouch/wptouch.php";}
I guess that a
is array, 7
is array's length, i
is integer, s
is string, etc.
What is this data type called? How to generate (encode) to store and how to read (decode) to use?
I think this storing solution perfectly fits to what I'm doing in my current project.