Jump to content

Problem with strstr()


yusufali

Recommended Posts

okay so i have a txt file were the first line is awaldock

$cheat_names = file('cheaters.txt');

thus print_r($cheat_names[0]);

returns

awaldock

 

now i have another variable that i have stored a string parsed from an html file called $roster

where

$roster[1] = awaldock"> awaldock (2432) 2View | View0

print_r($roster[1]); returns the correct value

 

yet when i do

$l = strstr((String)$roster[1],(String)$cheat_names[0]);

$l returns false

 

how can i fix this, because i know the search string is in the string.

Link to comment
https://forums.phpfreaks.com/topic/267185-problem-with-strstr/
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.