Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7921509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:36:27+00:00 2026-06-03T16:36:27+00:00

I am trying to modify my coding styles and am getting used to using

  • 0

I am trying to modify my coding styles and am getting used to using filter_var($input,FILTER_SANITIZE_FULL_SPECIAL_CHARS). I have gotten used to using the other filter_var options with no difficulty.

In this specific case though, FILTER_SANITIZE_FULL_SPECIAL_CHARS can only be used in newer versions of php than the one my hosting provider uses. We are still on php 5.2.17. My question is, how do I accomplish the same task with the same reliability as using this easy call to the filter_var function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:36:29+00:00Added an answer on June 3, 2026 at 4:36 pm

    From the best of my knowledge, the only solution I could come up with is as follows. Still not sure if it’s functionally identical or not, but my testing has shown it to work much the same….

    filter_var($input, FILTER_SANITIZE_STRING,FILTER_FLAG_ENCODE_AMP|FILTER_FLAG_ENCODE_HIGH|FILTER_FLAG_ENCODE_LOW);
    

    NOTE:
    When using more than one filter_var flag, you separate each flag after the first one with a pipe instead of a comma, or filter_vars breaks…. Took a while to figure that one out! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to modify HTML tag elements, I have a huge list
I'm trying to modify items in a list using a for loop, but I
I'm trying to modify the selection of a particular combobox. I have already retrieved
I am trying to modify a list and since my modifications were getting a
i have been trying the code using mutex but im unable to open my
I'm trying to modify an example in this website . I run this example
I'm trying to modify a dual handle slider to a generalised double model. [UPDATED]:
I'm trying to modify a serial program that reads from a database, and writes
I am trying to modify the source code of Joomla module but I don't
Ive been trying to modify the twitter bootstrap navbar, at the moment all the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.