Last active
November 19, 2020 09:28
-
-
Save ford153focus/4bbd0cbf1b2027234933c09901b9dd09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//here i will copy-paste strange code found in client's projects | |
if (!empty(trim(((isset($settings['onpost_ad_' . $i . '_content'])) ? $settings['onpost_ad_' . $i . '_content'] : '')))) { | |
array_push($quickAdsenseAdsId, $i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//YO DAWG | |
$count = array_sum( | |
array_map(function (array $spotData){ | |
return count(array_filter($spotData['containers'],function ($containerData){ return $containerData['match'];})); | |
},$spots) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment