@deadsuperhero It's uncommon these days, but that used to be quite common in PHP. It was era 2 in PHP history. (Era 1 was mostly using PHP itself as a template engine, which is how it began. Era 3 is using a dedicated template engine, which is where we are today.)
Its not something I recommend doing most of the time, but there are edge cases where it is at least reasonable.