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 8779269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:44:42+00:00 2026-06-13T19:44:42+00:00

This question might have been asked several times, but i didn’t find a solution

  • 0

This question might have been asked several times, but i didn’t find a solution for it.
If I want to have an URL with & like

http://www.mydomain.de?val1=test1&val2=test1

how can I fetch these parameters with PHP?

$_GET[] doesn’t work because it expects a plain & as separator.
Any advice?

  • 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-13T19:44:43+00:00Added an answer on June 13, 2026 at 7:44 pm

    You need to run html_entity_decode to convert & to & or any similar character

    Via URL

    $_SERVER['QUERY_STRING'] = html_entity_decode($_SERVER['QUERY_STRING']);
    parse_str($_SERVER['QUERY_STRING'],$_GET);
    var_dump($_GET);
    

    Simple String

    $url = "http://www.mydomain.de?val1=test1&val2=test1";
    $url = html_entity_decode(parse_url($url,PHP_URL_QUERY));
    parse_str($url,$parts);
    var_dump($parts);
    

    Output

    array
      'val1' => string 'test1' (length=5)
      'val2' => string 'test1' (length=5)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that this question might have been asked like 100 times, but, believe
I know this question might have been asked a few times already, but I
I know this question might have already been discussed a thousands of times but
I know that this question has been asked loads of times, but I have
This question might have been asked many times, I have been having difficulty in
Hey this might be a simple question, but i have been stumped on it
I asked this same question about a week ago, but I might not have
I'm well aware that variants of this question have been asked before, but I
Okay, I kinda asked this question already, but noticed that i might have not
Halo I'm sure this question has been asked many times in the past, but

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.