Bug #67927 [NEW]: in_array returns false searching for the word 'array'

From: Date: Thu, 28 Aug 2014 20:59:12 +0000
Subject: Bug #67927 [NEW]: in_array returns false searching for the word 'array'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187326@lists.php.net to get a copy of this message
From: jhackwell at docmagic dot com Operating system: Centos 6.5 PHP version: 5.6.0 Package: Arrays related Bug Type: Bug Bug description:in_array returns false searching for the word 'array' Description: ------------ The in_array function does not seem to be able to find the word 'array' inside an array. Test script: --------------- $arr = array( '​array', ); echo in_array('array', $arr) ? 'it\'s there' : 'it\'s not there'; Expected result: ---------------- it's there Actual result: -------------- it's not there -- Edit bug report at https://bugs.php.net/bug.php?id=67927&edit=1 --

« previous php.bugs (#187326) next »