<?php $string = "Subject: Update on Your Ticket: ID {{ random_number }} Body: Hello, Your ticket has been recently updated on {{ date }}. We kindly request you to review and acknowledge the changes made. If you have any further updates or queries regarding your ticket, please don't hesitate to respond to this email. Best Regards, {{ sender_name }}"; $parts = explode('Body:', $string); $subject = trim(str_replace('Subject:', '', $parts[0])); $body = trim($parts[1]); echo 'Subject = "'.$subject.'"'; echo PHP_EOL.PHP_EOL; echo 'Body = "'.$body.'"';
You have javascript disabled. You will not be able to edit any code.