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

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

WBOY
Release: 2016-06-23 14:38:21
Original
809 people have browsed it



        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);?>
Copy after login

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template