PHP string split explode and str_ split

From , 5 Years ago, written in PHP, viewed 209 times.
URL https://pastebin.vip/view/2b323d6e
  1. <?php
  2. $str = 'one|two|three|four';
  3. print_r(explode('|', $str));
  4. print_r(explode('|', $str, 2));
  5. // 负数的 limit(自 PHP 5.1 起)
  6. print_r(explode('|', $str, -1));
  7. ?>

Reply to "PHP string split explode and str_ split"

Here you can reply to the paste above

captcha

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