Thanks for the kind words.
@Andym: Foam isn't as sturdy as wood for sure. If I would use (fold) the table on a daily basis, I wouldn't recommend this method. But if the table is used carefully and only occasionally, there should be no problem.
Personally, I just want to try out this technique. Because for another project, I need to build (and transport and store) a variety of tables.