# Character to represent quotes in an array

**URL:** <https://forum.kirupa.com/t/character-to-represent-quotes-in-an-array/42213>\
**Category:** Uncategorized\
**Created:** [February 6, 2004, 3:17pm UTC](https://forum.kirupa.com/t/character-to-represent-quotes-in-an-array/42213 "2004-02-06T15:17:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobaa](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jacobaa](https://forum.kirupa.com/u/jacobaa)\
**Post date:** [February 6, 2004, 3:17pm UTC](https://forum.kirupa.com/t/character-to-represent-quotes-in-an-array/42213/1 "2004-02-06T15:17:03Z")

</div>

I have an array reading a string such as this:

myArray = (“5’6”, “5’4”, “5’5”);

These are all heights of people, I want to included a " - ex. 5’6"

but if i write that in the array, it screws it up because of the double quotes. ex:

myArray = (“5’6"”, “5’4"”, “5’5"”);

is their a special character that will represent " and other characters that make up an array?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 6, 2004, 3:21pm UTC](https://forum.kirupa.com/t/character-to-represent-quotes-in-an-array/42213/2 "2004-02-06T15:21:41Z")

</div>

Use a backslash before the double quotes inside the array:

```auto
myArray = new Array("5'6\"", "5'4\"", "5'5\"2");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 1:41pm UTC](https://forum.kirupa.com/t/character-to-represent-quotes-in-an-array/42213/3 "2004-02-09T13:41:20Z")

</div>

much thanks claudio!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 2:49pm UTC](https://forum.kirupa.com/t/character-to-represent-quotes-in-an-array/42213/4 "2004-02-09T14:49:08Z")

</div>

welcome jacobaa 🙂
