Question: Just trying to tidy up a little bit of code here. I have a php command to output some html. However, one of my comands is quite a large amount of html, I was wondering if it's possible to output code referenced in a different file?

For example, my current php looks like this:

```
$output .= '<div class="contact-form '.$css_class.'" >';
$output .= '<h4 class="form-title">'.$title.'</h4>';                    
$output .= 'SOME VERY LONG CODE'

```

Is it possible to do something like this:

```
$output .= include('file_with_long_code.html');

```

instead? I aven't tested this, but am curious to know if it works or what the proper way of doing it is

Answer: 
you can instead use getfilecontent function of php

```
 $output .=  file_get_contents('file_with_long_code.html'); 

```
$output .= file\_get\_contents('file\_with\_long\_code.html');

Yes, it is possible.