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
Newsletter emails stuck in qmail queue
perl OpenOffice::OODoc need to get and add tekst into a given frame
Group policy preferences computer configuration not applying to Windows 2003 Std SP2 R2 64 bit
Your message wasn't delivered because of security policies. Microsoft Exchange will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator
Exchange 2010 Send-As permissions do not stay applied
jQuery script error in Firebug
How to connect Crystal Report to SQL database in .NET C#
Is SQL Server 2005, 2008 free?
PowerEdge 1950 - Hard Drive Upgrade - Server 2003 R2
Lens error, restart camera error on Canon Ixus 60