php code snipplet
一段php代码.仅供参考!
PHP语言: 高亮代码由发芽网提供
<?php
/**
* Created by JetBrains PhpStorm.
* User: Administrator
* Date: 12-6-27
* Time: 下午10:55
* To change this template use File | Settings | File Templates.
*/$a = array(1, 3, 4, 5, 6, 8, 3, 2, 22, 55, 554, 12);
//var_dump($a);
rsort($a);
//var_dump($a);
//print($a[0]) . “\n”;
/**
* Created by JetBrains PhpStorm.
* User: Administrator
* Date: 12-6-27
* Time: 下午10:55
* To change this template use File | Settings | File Templates.
*/$a = array(1, 3, 4, 5, 6, 8, 3, 2, 22, 55, 554, 12);
//var_dump($a);
rsort($a);
//var_dump($a);
//print($a[0]) . “\n”;
$b = $a[0];
//print ceil($b / 25) . “\n”;
$filenames = array();
for ($i = 0; $i < ceil($b / 25); $i++)
{
$filenames[] = “requesr_” .($i==0? ($i * 25):(($i * 25)+1)) . “_” . (($i + 1) * 25) . “xml.gz”;
}
var_dump($filenames);