note 58278 added to function.array-search
| From: | proto at home dot com | Date: | Sat, 29 Oct 2005 19:46:51 +0000 |
| Subject: | note 58278 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97804@lists.php.net to get a copy of this message | ||
Just a quick side note. It seems that Umlaute in words cause a problem when using array_search e.g.:
<?php
$strings = array("Bücher", "Föhn", "Männer");
echo array_search("Bücher", $strings);
//Will return 0
if("Bücher"==$strings[0])
echo "Match found";
//This will echo "Match found"
?>
Cheers,
Proto
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58278
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58278&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58278&report=yes
Search -- http://master.php.net/manage/user-notes.php