trying to develop a class associated with table(like in frameworks). assume we have a class named Book
class Book
{
public function save()
{
....
}
}
$book = new book;
$book->id = '1';
$book->name = 'some';
$book->save();
the problem is how can i access this dynamically created properties inside save() to save new record