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
  • 948
  • 1
  • 11
  • 32

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 Selia
  • 7,007
  • 2
  • 11
  • 30