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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:13:31+00:00 2026-05-22T16:13:31+00:00

I have a weird project I’m working on. I’m totally new to php so

  • 0

I have a weird project I’m working on. I’m totally new to php so it has been a struggle so far.

I have a form that gives an array and posts it:

...
return($keywords);
}

$keywordlist = explode("\r\n", $keywordlist);
foreach($keywordlist as $keyword){
print_r(mixer(strtolower($keyword)));
}

I get this:

Array ( [0] => one [1] => two [2] => three [3] => four [4] => five [5] => six [6] => ....

But would like it to come out like this instead:

%28one%2Ctwo%2Cthree%2Cfour%2Cfive%2Csix%29

Ultimately hope to be able to attach it to the end of a url like ask.com search:

"http://www.ask.com/web?q=(put my keywords here)"

then navigate there

In theory it would be like I typed “(one,two,three,four,five,six)” into the search bar and pressed enter.

Hopefully that makes some sense.

  • 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-05-22T16:13:32+00:00Added an answer on May 22, 2026 at 4:13 pm

    This code:

    $keywords = array('one', 'two', 'three');
    $query = '(' . implode(',', $keywords) . ')';
    echo('Search query: ' . $query . PHP_EOL);
    $query = rawurlencode($query);
    echo('Encoded: ' . $query . PHP_EOL);
    

    Gives this output:

    Search query: (one,two,three) Encoded:
    %28one%2Ctwo%2Cthree%29

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

Sidebar

Related Questions

In a project that I'm working on I have to work with a rather
Greetings folks. I have this weird problem. In the project I'm working on now,
I have been experiencing a weird problem that I can't find a solution to.
I have a very weird problem.That my web project deployed to the Weblogic 10.0,Monday
I'm having some weird trouble with a project on VS2005. I have a few
This is the day of weird behavior. We have a Win32 project made with
I have a weird date rounding problem that hopefully someone can solve. My client
I have a weird issue that only seems to be affecting IE 7. The
I have this weird crash that only happens when running the app on the
i have a rather weird problem that should fix a bug in my current

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.