$str = preg_replace("/Total rows:(.*)/", "", $str);
$str = explode("\n", $str) ;
unset($str[0]);
unset($str[1]);
foreach($str as $line){
if(!empty($line)){
list($gn, $imp, $cl, $coast) = explode("\t", $line);
$linearray = array(
"AdGroupName" => $gn,
"Imp" => $imp,
"clicks" => $cl,
"coast" => $coast,
);
print_R($linearray);
}
};
$fdp = '12.2014';
$ld = date("t.".$fdp);
$fd = date("01.$fdp");
$firstWeek = strftime("%W", strtotime($fd));
$lastWeek = strftime("%W", strtotime($ld));
print_r (range($firstWeek, $lastWeek));
$fw = strtotime($ld);
$firstWeek = date("W", $fw);
$firstWeek = strftime("%W", strtotime($fd));
<?php if (class_exists('MultiPostThumbnails')) : $custombck = MultiPostThumbnails::get_post_thumbnail_url( 'page-background', $post->ID, 'full'); endif; ?>
<?php if(empty($custombck)){}else{ ?>
<style>
body.single-campaigns{
background-image:url(<?php echo $custombck; ?>) !important;
background-position: center center;
-o-background-size: 100% 100%; /* opera ≥ 9.5 */
-webkit-background-size: 100% 100%; /* Safari ≥ 5.0, Chrome ≥ 4.0 */
-khtml-background-size: 100% 100%; /* Konqueror ≥ 3.5.4 */
-moz-background-size: 100% 100%; /* Firefox ≥ 3.6 */
background-size: 100% 100%;
background-repeat: no-repeat !important;
}
</style>