# Echoing " in a text box

**URL:** <https://forum.kirupa.com/t/echoing-in-a-text-box/274961>\
**Category:** programming\
**Created:** [November 7, 2008, 1:06am UTC](https://forum.kirupa.com/t/echoing-in-a-text-box/274961 "2008-11-07T01:06:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [November 7, 2008, 1:06am UTC](https://forum.kirupa.com/t/echoing-in-a-text-box/274961/1 "2008-11-07T01:06:02Z")

</div>

If I fetched an array from MySQL, how do I replace all **"** with **"**? It’s not so easy to loop through the non-integer indexed array cells…

```auto

    [0] => http://threadless.com/blogs/blogs
    [startPage] => http://threadless.com/blogs/blogs
    [1] => http://www.threadless.com
    [linkStructure] => http://www.threadless.com
    [2] => /selected" href="\/blogs\/page,[0-9]+">[0-9,]+<\/a>[\s]+<a class="pagea " href="(.*?)"/
    [nextPageOfThreads] => /selected" href="\/blogs\/page,[0-9]+">[0-9,]+<\/a>[\s]+<a class="pagea " href="(.*?)"/
    [3] => /selected" href=".+">[0-9,]+<\/a>[\s]+<a class="pagea " href="(.*?)">/
    [nextPageOfPosts] => /selected" href=".+">[0-9,]+<\/a>[\s]+<a class="pagea " href="(.*?)">/
    [4] => /<a class="forum_title" href="(.*?)"><img/
    [threadUrl] => /<a class="forum_title" href="(.*?)"><img/
    [5] => /class="forum_comment">(.*?)<\/div>/
    [threadNumPosts] => /class="forum_comment">(.*?)<\/div>/
    [6] => //
    [threadNumViews] => //
    [7] => /class="forum_title_margin">[
][	]*<a class="forum_title" href=".*">(.*?)<\/a>/
    [threadTitle] => /class="forum_title_margin">[
][	]*<a class="forum_title" href=".*">(.*?)<\/a>/
    [8] => /&nbsp;[
][	]*[a-zA-Z]{3} [0-9]{2} \'[0-9]{2} by[\s][
][	]*[
][	]*<a .*">(.*?)<\/a>/
    [firstPostAuthor] => /&nbsp;[
][	]*[a-zA-Z]{3} [0-9]{2} \'[0-9]{2} by[\s][
][	]*[
][	]*<a .*">(.*?)<\/a>/
    [9] => /&nbsp;[
][	]*([a-zA-Z]{3} [0-9]{2} \'[0-9]{2}) by/
    [firstPostTime] => /&nbsp;[
][	]*([a-zA-Z]{3} [0-9]{2} \'[0-9]{2}) by/
    [10] => /<div class="blogs_body">[
][	]*(.*?)[	]*<\/div>/s
    [firstPostMessage] => /<div class="blogs_body">[
][	]*(.*?)[	]*<\/div>/s
    [11] => /">(.*?)<\/a> on [a-zA-Z]{3} [0-9]{2} \'[0-9]{2} at [0-9]{1}:[0-9]{2}[ampm]{2}[\s][	]*[
]/
    [replyAuthor] => /">(.*?)<\/a> on [a-zA-Z]{3} [0-9]{2} \'[0-9]{2} at [0-9]{1}:[0-9]{2}[ampm]{2}[\s][	]*[
]/
    [12] => /<\/a> on ([a-zA-Z]{3} [0-9]{2} '[0-9]{2} at [0-9]{1}:[0-9]{2}[ampm]{2})[\s][	]*[
]/
    [replyTime] => /<\/a> on ([a-zA-Z]{3} [0-9]{2} '[0-9]{2} at [0-9]{1}:[0-9]{2}[ampm]{2})[\s][	]*[
]/
    [13] => /class="comment_body">(.*?)<\/div>/s
    [replyMessage] => /class="comment_body">(.*?)<\/div>/s
    [14] => 0
    [id] => 0

```
