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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:08:00+00:00 2026-06-13T16:08:00+00:00

I am using THE PERFECT PHP CLEAN URL GENERATOR from http://cubiq.org/the-perfect-php-clean-url-generator public static function

  • 0

I am using THE PERFECT PHP CLEAN URL GENERATOR from http://cubiq.org/the-perfect-php-clean-url-generator

public static function create($clean, $delimiter='-') {
    echo $clean;
    $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $clean);
    $clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
    $clean = strtolower(trim($clean, '-'));
    $clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);
    echo $clean;
    return $clean;
}

to clean a name field being posted from a form now for some reason when I set the clean varible to “Hi! I’m the title of your page!” it gives me back hi-im-the-title-of-your-page which is to be expected but if I grab the clean variable from a post it goes in as “Hi! I’m the title of your page!” but comes out as hi-i039m-the-title-of-your-page is there anyway to fix this? Is there something I am not understanding?

  • 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-13T16:08:02+00:00Added an answer on June 13, 2026 at 4:08 pm

    Somewhere in your code the string is html encoded which turns ’ to #039; then at following step

    $clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
    

    characters # and ; are stripped and you end up with 039

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

Sidebar

Related Questions

using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I'm having problems using PHP SimpleXMLElement and simpleSMLToArray() function to parse a SOAP Response.
For SEO friendly urls i'm using this expression: RewriteRule ^([0-9]+).([^/]+)$ index.php?id=$1&titel=$2 The url is
UPDATE: For anyone else wondering about this, check out the comment at http://www.php.net/manual/en/function.imagecreatefromstring.php#31178 I
Basically I want to create a query using a php PDO to check if
http://ronaldarichardson.com/2011/09/23/recursive-php-spintax-class-3-0/ I like this script, but it isn't perfect. If you use this test
I am creating a simple search function for my website using MySQL and PHP.
i am using the following technique... From the login.php the form posts to the
Using PHP 5.3 fgetcsv function, I am experiencing some problems due to encoding matters.
I am using cakephp 2.2 THis is my smtp setup in Config/email.php public $gmail

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.