How to add a line break in SMS Message

Sometimes while sending a SMS, we need to add a new line or a link break in our sms. There are many ways to add a line break. But now every method will work in your case because it depends on how you are sending your SMS.

I Method : 

Add “\r\n” in your SMS.

II Method : 

Add “%0a” in your SMS.

Note : Encode your message with ” ” (double quotes) not ‘ ‘ (single quotes).


Using PHP Array in Javascript

If you have a PHP Array and want to perform some javascript operations by looping the PHP Array, then I recommend you to use PHP foreach loop instead of Javascript forEach loop.

function myfunction() {

<?php foreach($myArray as $val) { ?>


<?php } ?>