0

Is it possible to break the line in the following code

$data['snippets_html']=  $bootstrap_css.''.$bootstrap_js.''.$jquery_js.''.$ContentDecodedHTML;

I tried it like

$data['snippets_html']=  $bootstrap_css.'<br>'.$bootstrap_js.'<br>'.$jquery_js.'<br>'.$ContentDecodedHTML;
Upasana Chauhan
  • 805
  • 1
  • 6
  • 20

1 Answers1

1

You can use PHP_EOL to add line break and interpret it as such across platform ( Windows/Linux).

$data['snippets_html'] =  $bootstrap_css . PHP_EOL . $bootstrap_js . PHP_EOL . $jquery_js . PHP_EOL . $ContentDecodedHTML;

Working Link

Samir
  • 6,832
  • 2
  • 10
  • 30