Friday, 6 September 2013

What is the best way to store, a PHP array with objects in it, into a DB like SQLite?

What is the best way to store, a PHP array with objects in it, into a DB
like SQLite?

Here is an extract of what I am trying to store in a SQLite DB:
array(10) {
[0]=>
object(stdClass)#9 (3) {
["name"]=>
string(10) "cloudFiles"
["endpoints"]=>
array(4) {
[0]=>
object(stdClass)#10 (4) {
["region"]=>
string(3) "ORD"
What is the best way to store this in SQLite so that I can easily
reconvert it to its original form?
Also in my SQLite DB I chose text for the format; is this good or is there
another format that can let me store more information?

No comments:

Post a Comment