Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EbrahemSamer's avatar

How to insert break line in database and read it back as newline ( PHP NATIVE )

I have description textarea and It will be long

user will add description of product and the features of it.

I wanna when user hit enter and the cursor went down one line and insert after that, the database record that so when i display this description back, I wanna get this break line..... I do not wanna description to be long line....

thanks in advance.

0 likes
3 replies

Please or to participate in this conversation.