Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Difference: echo 'message' VS echo "message" ?
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MadiAraly




PostPosted: Wed Jul 13, 2016 12:59 pm   Post subject: Difference: echo 'message' VS echo "message" ?

I've seen echo be used with both single quotation marks/apostrophes, and with normal quotation marks.
When do I use each one? Shocked
Sponsor
Sponsor
Sponsor
sponsor
MadiAraly




PostPosted: Mon Jul 18, 2016 10:47 am   Post subject: Re: Difference: echo 'message' VS echo "message" ?

echo '$message' outputs the variable name as is, whereas echo "$message" outputs the variable's value.
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: