Jump to content

have is not in the array...


The Little Guy

Recommended Posts

I am searching an array, the array has ~600 values in it, 'have' is the 212th value in the array, so... why isn't my thing finding 'have' in the array? Is there a limit to the number of values that can be searched in in_array? If I manually search the array I can see that it is in the array.... It finds other things in the array, such as "do", "in" why does it not find "have"?

 

if(in_array('have', $stopWords)){
echo 'have is in the array';
}else{
echo 'have is not in the array';
}

Link to comment
https://forums.phpfreaks.com/topic/188407-have-is-not-in-the-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.