-3
echo '\n....'.$_SESSION['count'].' rows inserted.........................\n';
no new line using this

echo "\n....".$_SESSION['count']." rows inserted.........................\n";
gives new line with this 

why ' and " behaving differenlty

Bipin Chandra Tripathi
  • 2,550
  • 4
  • 28
  • 45
  • This is covered in the basic PHP documentation about strings - http://www.php.net/manual/en/language.types.string.php - please read the manual before coming here asking such basic questions – Mark Baker Feb 06 '13 at 18:02

1 Answers1

1

' is for literals. " is for parsed text.

See the PHP Manual Strings

Unlike the double-quoted and heredoc syntaxes, variables and escape sequences for special characters will not be expanded when they occur in single quoted strings.