Home >Backend Development >PHP Tutorial >PHP CodeIgniter 时间相减 和 大小相减 疑问

PHP CodeIgniter 时间相减 和 大小相减 疑问

WBOY
WBOYOriginal
2016-06-23 14:38:21810browse



        foreach ( $testinfo as $key => $value)
     {
    ?> 








 


  MB MB



----------------------------------------------------------------
我的想法是
一:用nrttime 减去rttime  怎么去减?时间
二:用nrtsize 减去rtsize   怎么去减?大小

回复讨论(解决方案)

<?php echo ($value['nrttime'] - $value['rttime'])/60;?><?php echo round(($value['nrsize'] - $value['rtsize'])/1024/1024,2);?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn