Microsoft
Software
Hardware
Network
Question : Search through a PHP object array
Hi, this should be easy:
I have this object array (printed with print_r)
Array ( [0] => Menuitem Object ( [id] => 1 [site_id] => 1 [ville_id] => 46 [service_id] => 1 [visible] => 1 ) [1] => Menuitem Object ( [id] => 2 [site_id] => 1 [ville_id] => 46 [service_id] => 3 [visible] => 1 ) [2] => Menuitem Object ( [id] => 3 [site_id] => 1 [ville_id] => 46 [service_id] => 4 [visible] => 0 ) )
Basically I need to get the visible value by entering service_id:
$searchvar = 3; //service_id=3
$visible = $menuitem->find_visible($s
earchvar);
//something like that....
------
object's method:
public function find_visible($src=0) {
????
return ...
}
Thanks in advance!
Answer : Search through a PHP object array
Handle DragLeave for the label and in that handler set the back color back to the default like:
private void AnyLabel_DragLeave(object sender, EventArgs e)
{
Label lbl = (Label)sender;
lbl.BackColor = defaultLabelBackColor;
}
Random Solutions
postini contact phone number
How do I remove Network Neighborhood using group policy?
How do I charge for a job?
Exchange 2003 does not work after reinstalling SMTP service on SBS 2003 Server
asp.net - I have a problem - i cannot connect an ajax calendar extention & textbox to the where clause of a gridview datasouce..
URGENT - SBS 2008 No primary network adapter found
Windows7 my Documents folder
IE8 Submit Form with [Enter] Key, not functioning properly
intrusion.generic.tcp.flag
s.bad.comb
ine.attack
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?