Hello,
I'm looking to search strings for the occurance of "ab", "bc", "cd" or "de" in position 5 and 6 (e.g wedrabd or qyrtcdz). Any ideas on how to do this?
Thanks !
You'd want to use the function [man]strpos/man with the offset of 5.
You could also do something like:
if(in_array(substr($string,4,2), array('ab','bc','cd','de'))) { // found it }