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

  • SEARCH
  • Home
  • 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 8751561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:04:20+00:00 2026-06-13T13:04:20+00:00

I am using implode to create a query string but there is an unexpected

  • 0

I am using implode to create a query string but there is an unexpected symbol appearing in it and im unsure where it is coming from

If anyone has any insight it would be much appreciated.

$url = "https://mypay.com/billing/signup.cgi";



$key = "11";
$key .= "11";
$key .= "GBP";
$key .= "QQDNfAHlC2WEEfhfhFFdhbdf";

$variables[] = "?formDigest=".md5($key);
$variables[] = "clientAccnum=1111";
$variables[] = "clientSubacc=1111";
$variables[] = "formName=108ck";
$variables[] = "formPrice=11";
$variables[] = "formPeriod=11";
$variables[] = "currencyCode=GBP";


$url .= implode("&", $variables);

echo $url;

The String

https://bill.ccbill.com/jpost/signup.cgi?formDigest=df03f2b103f79bd5de34c6cfea405ec5&clientAccnum=1111&clientSubacc=1111&formName=108ck&formPrice=11&formPeriod=11¤cyCode=GBP

notice the ¤ symbol where currencyCode should be.

Thanks for the help guys!

  • 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-13T13:04:21+00:00Added an answer on June 13, 2026 at 1:04 pm

    implode works fine.

    The problem here is that you are outputting HTML text (echo $url) but you are not properly encoding HTML special characters with htmlspecialchars.

    When the browser sees the substring &currencyCode=GBP it guesses that you must have meant ¤Code=GBP; ¤ is the HTML entity for the currency symbol, so that’s what you see on the screen.

    Change the code to echo htmlspecialchars($url) to see an immediate difference; for a fully correct solution, pay attention to and give correct values for the first three arguments of htmlspecialchars.

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

Sidebar

Related Questions

I have declared a method where it will dynamically create a database query string
I want to implode a query result using , inside my mysql stored procedure.
I am using PHPExcel to create an Excel document, using data from a MySQL
i'm trying to insert multiple data using a query, i've tried the implode function,
I am trying to create a PHP function that Ciphers a string using a
I'm using PDO method in my PHP page to implode two strings (in order
Using import datetime in python, is it possible to take a formatted time/date string
I'm learning zend framework from zendCast and can't find the problem I'm using: -Zend
I am using the code below to create an array of images. I'd love
I've been using implode function of php and suddenly I encounter a problem regarding

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.