Hey @RJLuppino,
They both do the same thing, the only difference being the context in which they’re used. I would use the first version when that function would have a lot of PHP code around it and the second version when I would have a lot of HTML code around it.
It’s a matter of convenience really. Does that answer your question?
Cheers!
P.S. Love your name professor