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

    The_Small_k

    Member

    Updated: Oct 17, 2024
    Views: 1.4K
    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.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • simplycoder

    MemberSep 16, 2011

    @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.
    Are you sure? This action cannot be undone.
    Cancel
  • The_Small_k

    MemberSep 17, 2011

    @SC Thanks for the reply.
    Actually i am using java.I fixed this issue by using scriptlets(<% %>).
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register