How to get part of array and append the values ?
I have an test array
Array
(
[name] => test
[sex] => male
[contests] =>
[polls] =>
[quotes] =>
[spouse] => ,57
[father] => ,55
[mother] => ,56
[brother] => ,1,3
)
I want to take array elements from spouse to brother and get appended all values to string .
$test = ',57,55,56,1,3'
Is it possible to done with array functions in PHP ?
You can do this way
Getting position of key in assosiative array (not best solution but working)