|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-19 07:50 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
Description: ------------ strpos fails when array is used as needle. Reproduce code: --------------- $i = 2; $str_word = 'sentence with word2'; $arr_letters = array('word1', 'word2', 'word3'); echo strpos($str_word, $arr_letters[$i]); Expected result: ---------------- null