Jump to content

compare array to string


XpertWorlock

Recommended Posts

I dont quite understand the code, but there are multiple strings in an array, u can call up the string u want by specifying the position of the string through sequence by number eg. $array[0] or  a unique id of an associative array $array['key'], in ur case i think you are trying to do this:

if ($array['Jeff,employee'] == $string) {//do something here}

Let me know if i misunderstood u,

Ted

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.