If you prepare output by escaping it and storing it to a specific array, you can then use the latter’s contents without having to worry about whether the output has been escaped.
If you encounter a variable in your script that is being outputted and is not part of this array, then it should be regarded suspiciously. This practice will help make your code easier to read and maintain. For this example, assume that the value for $user_message comes from a database result set.
The only conclusion I can arrive at is that it's easier to keep track of a single array (in your own mind) than any number of disparate variables (likely mixed in with un–output-prepared variables). It's not my cup of tea but if it helps someone else then that's good.
The Following User Says Thank You to Salathe For This Useful Post: