I have an object and can access one of its properties by
$book = new Book(); print $book->price;
I can also call
$prop = "price"; print $book->$prop.
But I cannot figure out how to call in a mixed way, it gives error:
$book->id_$prod
as a shortened of $book->id_products, being $prod = "products".