I have this variable that contains a string. For example:
$message =
'Dear User1,
Your record submitted has been disapproved by User.
Remarks:
Document No.:
Record Title: Test1
Record URL: http://myapp.dev/records?id=1
Sincerely,
Admin
Dear User1,
Your record submitted has been disapproved by User.
Remarks:
Document No.:
Record Title: Test2
Record URL: http://myapp.dev/records?id=2
Sincerely,
Admin';
What will I do in order to get this type of result?
Dear User1,
Your record submitted has been disapproved by User.
Remarks:
Document No.:
Record Title: Test1
Record URL: http://myapp.dev/records?id=1
Record Title: Test2
Record URL: http://myapp.dev/records?id=2
Sincerely,
Admin
I think I could manipulate the string by using preg_split();?
Please mention the things that I missed or you want to know. Any idea(s) would be really appreciated!