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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:56:21+00:00 2026-05-22T15:56:21+00:00

I was wondering what does the following sentence mean in simple terms for us

  • 0

I was wondering what does the following sentence mean in simple terms for us dummies?

And what is byte sequence? And how many characters in a byte?

iconv_strlen() counts the occurrences of characters in the given byte sequence str on the basis of the specified character set, the result of which is not necessarily identical to the length of the string in byte.

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

    Let’s take for example the Japanese character ‘こ’. Assuming UTF-8 encoding, this is a 3 byte character (0xE3 0x81 0x93). Let’s see what happens when we use strlen instead:

    $ php -r 'echo strlen("こ") . "\n";'
    3
    

    The result is 3, since strlen is counting bytes. However, this is only a single character according to UTF-8 encoding. That’s where iconv_strlen comes in. It knows that in UTF-8, this is a single character, even though it’s made up of 3 bytes. So if we try this instead:

    $ php -r 'echo iconv_strlen("こ", "UTF-8") . "\n";'
    1
    

    We get 1. That’s what that explanation is meant to point out.

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

Sidebar

Related Questions

I was wondering what does the following sentence mean in laymens terms about the
I am wondering what the different color schemes mean in the following: What does
I was wondering what does X11cairo in the following mean > pdf(1_4.pdf) > plot(output)
I have found following code in mysql documentation but wondering what does it mean
I am wondering why the following regex does not match. string query = \1
I've seen the following often lately and I'm wondering what it does? I can't
I'm wondering why the following link does not validate in W3schools validator. <a href=../anonymous/anonymous.master.php?page=showproduct.php&id=4>Dvds</a>
I am wondering why the following azure workerrole does not show any diagnostic messages
I am wondering why in the following code the static integer does not stay
.I have the following code. I am wondering why does my echo '<font color=#FF0000>'.$update_date2.'</font><br><br>'.$status.'<br>';

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.