|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-04 16:56 UTC] dave@php.net
[2020-02-07 06:11 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 16:00:01 2025 UTC |
Description: ------------ The parameter case_sensitivity should probably be named case_insensitivity in the documentation. "int substr_compare ( string main_str, string str, int offset [, int length [, bool case_sensitivity]])" and "If case_sensitivity is TRUE, comparison is case sensitive." Reproduce code: --------------- print substr_compare("abc", "ABC", 0, 3, TRUE); print substr_compare("abc", "ABC", 0, 3, FALSE); Expected result: ---------------- 1 0 Actual result: -------------- 0 1