I used both " " and ' ' what's next to represent a string ?

Hello friend's
Sometimes when we already used " " to represent a string.Next time when we have to represent a string under " " we use ' '.
I used both and don't know what's next.
Help me guy's.


  • simplycoder
    @small_k: I think you are using some language like that of php.
    In general sense, ' ' is used to represent a character in the string and " " is used to represent a string.
    In languages like that of php, the php parser, will allow the programer to use both representations ' ' and " " to represent a string.

    To represent another string,I would recommend escape sequence \ just google up for addslashes.
  • The_Small_k
    @SC Thanks for the reply.
    Actually i am using java.I fixed this issue by using scriptlets(<% %>).

You are reading an archived discussion.

Related Posts

As a chemical engineer , i am very glad to be a member of this forum, i hope we will get the benefit from each other. Also h hope that...
Hi guys,I have an MTS net setter and I use it in ma laptop....I need to share it via wifi to ma frnds laptop.I created a peer to peer connection...
I was admitted to b.tech(IT) in 2007 but due to 2 back papers i am unable to complete the course in due time. Instead of 2007-2011, it will be now...
We had these three books: Introduction to Algorithms - Author Thomas H. Cormen - Publication Prentice Hall of India Design & Analysis of Computer Algorithms - Author Horowitz, Sahani, Rajsekharam...
Here are some of the prescribed books: 1. Software Engineering- A Practitioner's Approach (Sixth Edition) - Roger Pressman (TMH) 2. Software Engineering (Seventh Edition) - Ian Summerville, Pearson Education. 3....