Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = array();
- foreach ($bestliker as $key => $value) {
- $result_count_liker_id = $key;
- $result_count_liker = $value;
- if ($result_count_liker > 0) {
- foreach ($bestcommentator as $key2 => $value2) {
- $result_count_comment_id = $key2;
- $result_count_comment = $value2;
- if ($result_count_liker_id == $result_count_comment_id ) {
- $result= $result_count_liker + $result_count_comment;
- var_dump($result);
- }
- }
- }
- }
- $result = array();
- $input= array($bestliker,$bestcommentator);
- array_walk_recursive($input, function($item, $key) use (&$final){
- $final[$key] = isset($final[$key]) ? $item + $final[$key] : $item;
- });
Add Comment
Please, Sign In to add comment