a:1:{s:2:"en";s:39:"Sample Text";}
Shortly my question, do you have an idea about the above format?
I want to store long site settings following array like above format like JSON.
$settings = array(
'slug' => 'test',
'title' => 'John Doe',
'description' => 'A Yes or No option for the module',
'`default`' => '1',
'`value`' => '1',
'type' => 'select',
'`options`' => '1=Yes|0=No',
'is_required' => 1,
'is_gui' => 1,
'module' => 'johndoe'
);
It look likes JSON but probably it's not.
I have not any idea about this format reading and creating.
In fact which PHP and MySQL Datatype to use for storing long params with best performance?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…