截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. <?php
  2. namespace Stringy;
  3. if (!function_exists('Stringy\create')) {
  4. /**
  5. * Creates a Stringy object and returns it on success.
  6. *
  7. * @param mixed $str Value to modify, after being cast to string
  8. * @param string $encoding The character encoding
  9. * @return Stringy A Stringy object
  10. * @throws \InvalidArgumentException if an array or object without a
  11. * __toString method is passed as the first argument
  12. */
  13. function create($str, $encoding = null)
  14. {
  15. return new Stringy($str, $encoding);
  16. }
  17. }