|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-12 14:54 UTC] derick@php.net
[2004-12-13 21:19 UTC] km at control-b dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
Description: ------------ str_word_count return wrong number, if german umlaut "ö" (ö) is contained in the word. it is okay, if the umlaut is the first or the last character. the same goes für the ligature "ß" ß. Reproduce code: --------------- echo str_word_count('wäre'); # 1 - okay echo str_word_count('würde'); # 1 - okay echo str_word_count('wérk'); # 1 - okay echo str_word_count('wörk'); # 2 - wrong!!! echo str_word_count('örk'); # 1 - okay echo str_word_count('werök'); # 2 - wrong!!! echo str_word_count('weräk'); # 1 - okay echo str_word_count('straßenbahnölbehälter'); # 3 words??? Expected result: ---------------- the above code should return always 1