vendredi 12 octobre 2018

how to treat data from a nosql database in code?

{ "posts": [ { "type": "article" "title": "Title 01", "content": "Content 01" }, { "type": "tutorial" "title": "Title 02", "content": "Content 02", "videos": { "one": "http://one.com, "two": "http://two.com } } ] }

class Post {

private $type;

private $title;

private $content;

private $videos;// may not exist

}

Aucun commentaire:

Enregistrer un commentaire