i am unable to concardinate i am getting error..

<?php
$subject = "You got a Project Invitation from ".echo $_SESSION['user_name'];

?>

Hi,

Please remove echo statement in concate.

i.e.

$subject = "You got a Project Invitation from ". $_SESSION['user_name'];
echo $subject;

Please check and let me know.

Thanks,
Ajay

example :-

<?php
$subject = "You got a Project Invitation from ". $_SESSION['user_name'];
echo $subject;
?>

commented: Please check previous posts, you are just repeating - this is becoming a habit -3

I need to send it to mail

$subject = "You got a Project Invitation from ".echo $_SESSION['user_name'];
mail($to, $subject, $message, $headers);