unable to get data from ARRAY in PHP
Get the solution ↓↓↓Solution:
try the following:
$permName = $array['selectData']['perm_name'];
$typeName = $array['selectData']['type_name'];
Answer
Solution:
Try this.
function array_separator($val, $key, $identifier) {
if ($key == $identifier) { // perm_name
// do foreach for the perm_name subarray
} else { // type_name
// do foreach for the type_name subarray
}
}
$select_data_array = array(/* the selectData subarray i.e. $array['selectData'] */);
array_walk($select_data_array, 'array_separator', 'perm_name');
Hope I got your question right.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: fastcgi sent in stderr: "primary script unknown" while reading response header from upstream
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.