How to output a PHP file values by shortcode?

We’ve built shortcodes in the past using concatenating variables.

To paraphrase the link above, you should output your PHP as such.

 $output="<p>";
 $output .= '<strong>' . $content . '</strong>';
 $output .= '</p>';
 return $output;

Note, see the .= variable concatenation.