Weedpacket;11030549 wrote:Another quick rework of the condition:
strpos($field, "\n") || strpos($field, "\r")
At first the use wasn't clear to me, but apparently the point is to use to determine if they are NOT present, and then react accordingly, right?
Sounds like a case for:
if (strpos($str, $substr) === false) {
OR if (strpos($str, $substr) !== false)
, right?
It didn't take me long to find the "gotchas" with it; like "if (strpos($str, $substr) == false) {" lol!
If I'm right, that's a decent example of thinking "outside the box", eh? I'd have never thought of that approach.
Regards,
Rivet`