Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.