Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

strlen() in PHP is constant-time O(1), we don't use C strings. (Well, we do, but we store length information and reference count them)

See: http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_builtin_function...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: