I would like to know how to compare the contents of a string in PHP. I'm looking for a word on a line, but I do not know what position it is in.
$ch_atend
if($linha == "idle") { $ch_atend = $ch_atend++; };
This code is within a While and the purpose is to go line by line to count how many times the IDLE tag appears.