<?php $recipients = [ "kumar", "ram@test.com", "ravi", "rob@example.com" ]; echo implode( ', ', preg_replace( '/^[^@]+$/', '$0@test.com', $recipients ) );
You have javascript disabled. You will not be able to edit any code.