What is the most efficient method to pass a variable from PHP to a textarea for user input?

To pass a variable from PHP to a textarea for user input, you can simply echo the variable within the value attribute of the textarea tag. This way, the variable will be pre-populated in the textarea for the user to edit or submit.

<?php
$variable = "Hello, world!";
?>

<textarea name="user_input"><?php echo $variable; ?></textarea>