Jump to content

delete


Rifts

Recommended Posts

Well, what is the content of $wtf and where is $thecount defined?

 

in any event you should be using a foreach() loop on the array and not a for() loop. You can easily find what IS happening by adding some code to show debugging messages. Try this

$number = 3;
foreach($wtf as $word)
{
    $wordCount = strlen($word);
    echo "Word {$word}, Count: {$wordCount}, " 
    if($number == $wordCount)
    {
        echo "Match!<br>\n";
    }
    else
    {
        echo "No Match!<br>\n";
    }
}

Link to comment
https://forums.phpfreaks.com/topic/259391-delete/#findComment-1329728
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.