Function : Br

The br() function breaks a line both within cli and on web pages. When working on cli, the br() automatically converts to PHP_EOL while outside cli the break tag <br> is used.

Syntax
  br($value, $breaks);

  
  $value: string 
  $breaks: number of breaks after
   
                
Sample 1
  echo "Break after this". br('A new line');

  
  //html result:
   
  Break after this <br> A new line
  
  //cli result:
   
  'Break after this'. PHP_EOL . 'A new line'
                
Sample 2
  echo "Break after this". br('A new line', 2);

  
  //html result:
   
  Break after this <br><br> A new line
  
  //cli result:
   
  'Break after this'. PHP_EOL.PHP_EOL . 'A new line'