Jump to content

[SOLVED] help with extracting data from arrays


Letterbomb05

Recommended Posts

Hi,

heres my problem, I have an array like this:

 

$switchboard['call'][$from] = $to;

Array ( [call] => Array ( [#chan2] => #chan1 ) ) 

 

simple enough, now I can check to see if #chan1 to if is in the array simply by using this:

array_search('#chan1',$array)

 

now this is all fine and dandy, but how do I then check to see if #chan2 is present?

 

now, that isn't all of it, if I then find out that #Chan2 is present, how do I then find out that it is asociated with #chan1, and if i find out #chan1 is present, how do i find out that it is asociated with #chan2?

 

Thanks in advance for any help :)

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.