string

Estimated reading time: 1 minute

string

  • single quote
$name = 'kamal'
echo 'kamal is here \n new line'
//  kamal is here \n new line
  • double quote
$name = "kamal"
echo "kamal is here \n new line"
//  kamal is here
//  new line

resources

php