Jump to content

search array


dose

Recommended Posts

im such a newb with php im slowly learning.. can anyone show me how to search an array then store the match to be searched again??

 

example to help explain..

 

i want to search the array $id for $user user being from get user then i want to search that string for a more specific match.

 

im really trying to search a array that looks like

 

preg_match_all("/personaId=\"(.*?)\" userId=\"(.*?)\" displayName=\"(.*?)\" nameSpace=\"(.*?)\"/", $html, $id);

 

trying to match the display name first then further match the personaid.

Link to comment
https://forums.phpfreaks.com/topic/183107-search-array/
Share on other sites

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.