Searching Numbers

I am using the following to display search terms: getSearchWords()

I have noticed that when the term is alphabetical I don't get quotations around my word, but if the term is numerical there are quotations around my word.

Just curious why numbers and letters would return different.

Thanks,
Josh

Comments

  • Can't really remember why, but certainly that is eplicitly done for numbers.
  • lol, yeah, it's not a big deal...just thought it was interesting.

    Thanks,
    Josh
  • I wanted to remove the quotation marks around the numbers in my search results...so, I did the following:

    `<?php`
    `$term = getSearchWords();`
    `echo str_replace('"', "", $term);`
    `?>`

    That's it...quotation marks removed!!

    NOTE: This will remove all quotation marks within the string, not just around the numbers, but it worked for me :)

    Just thought I'd share what I did...it might help others.

    Thanks,
    Josh
Sign In or Register to comment.