Heredoc issue

The following code ends up with error

<?php
echo <<<"AR"
"This is just a trial"
AR;
?>

Parse error: syntax error, unexpected T_SL on line 2

Can any one help me?

Heredoc identifiers are not quoted by default… but i dont see a specific problem there. hmm.

You havent got any spaces or anything before the closing, do you?

EDIT: There also can be no whitespace after the opening.

No.i dont have spaces…
I am using PHP 5.2.5 …Will it support heredoc syntax

First and foremost, heredoc identifiers are not quoted. Remove the quotes around AR.
Second, PHP 5.2 is no longer supported you need to update to at least 5.3.

Remove the quotes in “AR”.

With quotes it works on 5.3.6