Jump to content

searching a string for occurrence of AT&T


chadr-php

Recommended Posts

I want to identify strings with AT&T in them.  Can't seem to find the

right way to do this due to the &.

 

I am using the strpos function in this manner:

 

if (strpos(($string), 'AT&T')) > 0)

 

I don't need to input or display using http.  This is just a php

script that I'll run from the command prompt.

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.