PHP finds the maximum value Max and the minimum value min

From , 3 Years ago, written in PHP, viewed 206 times.
URL https://pastebin.vip/view/980a875f
  1. <?php
  2. echo min(1, 3, 5);      // 输出:1
  3. echo min(array(2, 4, 5));   // 输出:2
  4. echo min(0, 'hello');       // 输出:0
  5. echo min('hello', 0);       // 输出:hello
  6. echo min(-1, 'hello');      // 输出:-1
  7.    
  8. $min = min(array(2, 4, 10), array(2, 5, 7));    // 返回array(2, 4, 10)
  9.    
  10. $min = min('hello', array(2, 5, 7), 42);      // 输出:hello
  11. ?>

Reply to "PHP finds the maximum value Max and the minimum value min"

Here you can reply to the paste above

captcha

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