gurmeet
12-16-2009, 06:14 AM
i am not a professional user in PHP, last week i found a script there are { } symbols in echo statement, i am unable to understand , plz tell me the meaning of these symbols, n tel me how these braces can b used...
xample is here:
echo '{'.
'succes: true,'.
'title: \'<strong>Login Success</strong>\', '.
'content: \'You have authenticated successfuly<br />'.
'click <a href="'.$successURL.'">here</a> to continue\''.
'}';
else
echo '{'.
'succes: false,'.
'title: \'<strong>Login Failed : User and Password combination is not valid</strong>\''.
'}';
xample is here:
echo '{'.
'succes: true,'.
'title: \'<strong>Login Success</strong>\', '.
'content: \'You have authenticated successfuly<br />'.
'click <a href="'.$successURL.'">here</a> to continue\''.
'}';
else
echo '{'.
'succes: false,'.
'title: \'<strong>Login Failed : User and Password combination is not valid</strong>\''.
'}';