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
WSUS Clients not reporting to the WSUS console or SBS 2008 Console
exchange 2010, user has left company, simple way to get all users new emails to different user?
How do we use GPO (Group Policy) to REMOVE trusted sites from I.E. Trusted Sites Zone on workstations on a domain?
Extract date and part of the line from a log file
Can't locate DBI.pm in @INC
How do I activate a product key for Windows 7 professional on a pushed machine
Running the System Update readiness tool.
xp sp2 clients wont log or ping server 2003
There is a problem communicating with the CRM server. The server might be unavailable. Try again later
Cisco "Do wr" does not work in "conf t" mode or any other sub-mode