in reply to Loops and comparisons
This comparison does not seem to be working:
What is the mistake here?if ($third_char ne 'c' || $third_char ne 'd'){ $part=substr($stri,0,2);
I guess it depends upon what you mean by "not working"; I assume you are aware that it is unlikely that any single character would fail to satisfy your test?
:)
Draw a Venn diagram :) :)
|
|---|