A
Anonymous
Guest
not too clear but, there many ways to do this. Since it seems simple i'd suggest not using some form of regex.
e.g. 1
The list goes on and on...
e.g. 1
Code:
$s = "DELL,OPTIPLEX GX270";
if(strstr($s, "DELL")) { echo 'yes'; }
if(stristr($s, "dell")) { echo 'yes'; } // case insensitive version
if(strcmp($s, "DELL,OPTIPLEX GX270")==0) { echo 'yes'; } // for strings
if(is_numeric($s))
if(intval($s))