Hi this is my var_dump result. My problem is : If my array contains more than once the same "name"(in my case "Test2"), then remove one of them. In my case all of the information from [0] or [1]. Thx.
array(3) {
[0]=>
object(stdClass)#24 (14) {
["name"]=>
string(19) "Test2"
["taskid"]=>
string(5) "11526"
}
[1]=>
object(stdClass)#25 (14) {
["name"]=>
string(19) "Test2"
["taskid"]=>
string(5) "11526"
}
[2]=>
object(stdClass)#26 (14) {
["name"]=>
string(19) "Test1"
["taskid"]=>
string(5) "11525"
}
}
I want this result :
array(3) {
[0]=>
object(stdClass)#24 (14) {
["name"]=>
string(19) "Test2"
["taskid"]=>
string(5) "11526"
}
[1]=>
object(stdClass)#26 (14) {
["name"]=>
string(19) "Test1"
["taskid"]=>
string(5) "11525"
}
}