Two things to keep in mind, one of which has been touched on. Where we live 5 days or more requires a doctors note or a truancy charge can be filed. Whether it is or not depends on the school, but it can be done.
The second is this; legally the school is ok with it and teachers will always say how nice it is when informed but it actually puts a great deal of extra work on those same teachers. Some schools don't allow graded work to be done off campus, so you can request their work and get most of it but some will have to be caught up on return. Also, for some subjects, math in particular, when you miss several days you can miss most of a unit of instruction and because so much of math builds on previously taught concepts it requires a great deal of extra work to get the student caught up unless they were already ahead of the class.
My mom, who was a teacher, never pulled my sister or I during school, even early. My MIL, who was also a teacher, never took her kids out of school either, unless it was an actual emergency. The teachers are happy for your kids and do want them to have a good time, but as I said, it does create a lot of extra work for them.