I have this array that I want to search and return the 'names' where the 'project_id' equal a predefined value, for example from the array below:
array(2)
{
[0]=> array(28)
{
["id"]=> int(3794)
["name"]=> string(30) "Value #1"
["milestone_id"]=> int(280)
["project_id"]=> int(41)
}
[1]=> array(28)
{
["id"]=> int(3795)
["name"]=> string(30) "Value #2"
["milestone_id"]=> int(261)
["project_id"]=> int(41)
}
[2]=> array(28)
{
["id"]=> int(37966)
["name"]=> string(30) "Value #3"
["milestone_id"]=> int(250)
["project_id"]=> int(40)
}
[3]=> array(28)
{
["id"]=> int(3797)
["name"]=> string(30) "Value #4"
["milestone_id"]=> int(250)
["project_id"]=> int(42)
}
[4]=> array(28)
{
["id"]=> int(3798)
["name"]=> string(30) "Value #5"
["milestone_id"]=> int(280)
["project_id"]=> int(41)
}
}
I would like to return all of the names for any of the records that have the project_id of 41 - in this case:
Value #1
Value #2
Value #5
To be honest, I'm new to PHP, and I've been stumbling around the interwebs trying to make some sense of various code snippets & instructions - none of which seem to do what I am after without significant fettling which I unfortunately lack the knowhow to do so any help would really be appreciated.
Many thanks