Loading…

How to insert a line break in php string?

You can use nl2br() to insert line break in the string.

Example

                                        

nl2br("Best Interview \n Questions");

Suggest An Answer

No suggestions avaliable!

Latest post from PHP Strings

Ask Question