I’m working with the WhatsApp API and trying to send a message in php that includes a new line break. However, I’m having trouble getting the line break to appear in the message.
$msg = 'Name : '.$posted_data['text-438'];
$msg .= 'Phone Number : '.$posted_data['tel-214'];
$msg .= 'Email : '.$posted_data['email-809'];
$msg .= 'Course : '.$posted_data['menu-290'][0];
$msg .= 'Message : '.$posted_data['textarea-412'];
$txtMessage = $msg;
%0A,
,n , \n , <br/> , rn , %%0A , %0A , %5Cn , rn , %0D , %0a , %0d%0a , %%0a , %%0A ,nl2br
I tried Above codings .. but none of these not working
Is there a specific way to format messages to include line breaks in the WhatsApp API? Any guidance or suggestions would be greatly appreciated.