More to the point, is one of these faster or considered 'better' than the other?
function name_field($name){?>
<div class="input-wrap">
<label for="name">Name:</label>
<input type="text" id="name" value="<?php echo $name; ?>"/>
</div>
<?php }
Compared to:
function name_field($name){
$output = '<div class="input-wrap">';
$output .= '<label for="name">Name:</label>';
$output .= '<input type="text" id="name" value="' . $name . '"/>';
$output .= '</div>';
echo $output;
}