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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:52:32+00:00 2026-06-03T23:52:32+00:00

PHP coding standards say: … PHP holds the length property of each string, and

  • 0

PHP coding standards say:

… PHP holds the length property of each string, and that it
shouldn’t be calculated with strlen(). Write your functions in a such
a way so that they’ll take advantage of the length property, both
for efficiency and in order for them to be binary-safe. …

How can I access this length property? Or do I misunderstand it?

  • 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-03T23:52:33+00:00Added an answer on June 3, 2026 at 11:52 pm

    As Ignacio mentioned in another post:

    They’re talking about the C function, not the PHP function. The C
    function will stop counting after the first \0, but PHP strings can
    contain \0 elsewhere other than the end.

    That document is most likely about how to extend PHP’s engine, rather than programming in PHP itself.

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

Sidebar

Related Questions

I have historically used a monolithic approach to PHP coding. That is, I write
Hi I have a web form that sends a string to one php file
Where can I find PHP coding convention references for PHP coding standards?
I'm pretty familiar I guess with both Zend and PEAR PHP coding standards, and
We're about to look at implementing some PHP Coding Standards in our workplace to
I am trying to configure Emacs v23 to follow Kohana coding standards for PHP.
The Zend Framework coding standard mentions the following: For files that contain only PHP
Just browsing over the latest release of the PHP coding standards, and something caught
I am a newbie of PHP coding, and want to do a simple math
I see this problem on and off again in my PHP coding, and I've

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.