Unset function clears memory

From , 3 Years ago, written in PHP, viewed 222 times.
URL https://pastebin.vip/view/2217ad1d
  1. <?php  
  2. $s=str_repeat('1',255);  //产生由255个1组成的字符串  
  3. $m=memory_get_usage();  //获取当前占用内存  
  4. unset($s);  
  5. $mm=memory_get_usage();  //unset()后再查看当前占用内存  
  6. echo $m-$mm;  
  7. ?>  

Reply to "Unset function clears memory"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website