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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:30:24+00:00 2026-05-13T15:30:24+00:00

In PHP, what’s the most elegant way to get the complete list (array of

  • 0

In PHP, what’s the most elegant way to get the complete list (array of strings) of all the Unicode whitespace characters, encoded in utf8?

I need that to generate test data.

  • 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-13T15:30:24+00:00Added an answer on May 13, 2026 at 3:30 pm

    This email (archived here) contains a list of all Unicode whitespace characters encoded in UTF-8, UTF-16, and HTML.

    In the archived link look for the ‘utf8_whitespace_table’ function.

    static $whitespace = array(
        "SPACE" => "\x20",
        "NO-BREAK SPACE" => "\xc2\xa0",
        "OGHAM SPACE MARK" => "\xe1\x9a\x80",
        "EN QUAD" => "\xe2\x80\x80",
        "EM QUAD" => "\xe2\x80\x81",
        "EN SPACE" => "\xe2\x80\x82",
        "EM SPACE" => "\xe2\x80\x83",
        "THREE-PER-EM SPACE" => "\xe2\x80\x84",
        "FOUR-PER-EM SPACE" => "\xe2\x80\x85",
        "SIX-PER-EM SPACE" => "\xe2\x80\x86",
        "FIGURE SPACE" => "\xe2\x80\x87",
        "PUNCTUATION SPACE" => "\xe2\x80\x88",
        "THIN SPACE" => "\xe2\x80\x89",
        "HAIR SPACE" => "\xe2\x80\x8a",
        "ZERO WIDTH SPACE" => "\xe2\x80\x8b",
        "NARROW NO-BREAK SPACE" => "\xe2\x80\xaf",
        "MEDIUM MATHEMATICAL SPACE" => "\xe2\x81\x9f",
        "IDEOGRAPHIC SPACE" => "\xe3\x80\x80",
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PHP's explode function returns an array of strings split on some provided substring. It
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
PHP, as we all know is very loosely typed. The language does not require
PHP treats all arrays as associative, so there aren't any built in functions. Can
PHP (among others) will execute the deepest function first, working its way out. For
PHP, for all its warts, is pretty good on this count. There's no difference
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
PHP Image resize returns only black background. I read all similar posts here, but
php> $a = array(a=>1,b=>0,c=>1,d=>1,e=>0); php> $b = array(); php> foreach ($a as $k =>$v){

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.