Jump to content

Single line spacing


yeshi
 Share

Recommended Posts

Hi anyone know how to show record with single line spacing???? im using php coding... For example :The record in database is:HelloWorldbut when i print out it will show Hello world.
<?phpecho nl2br($record);?>

Function: nl2br converts line breaks (e.g. "\n") into the HTML line break: <br />

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...