\begin{lrbox}{cmd} text \end{lrbox}
This is the environment form of \sbox.
\sbox
The text inside the environment is saved in the box cmd, which must have been declared with \newsavebox.
cmd
\newsavebox