1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-15 01:34:03 +02:00

Conditionally load Stringy\create

This commit is contained in:
Daniel St. Jules
2015-01-07 09:09:07 -08:00
parent d1452263bd
commit d6fa00bb1c

View File

@@ -2,6 +2,7 @@
namespace Stringy;
if (!function_exists('Stringy\create')) {
/**
* Creates a Stringy object and returns it on success.
*
@@ -15,3 +16,4 @@ function create($str, $encoding = null)
{
return new Stringy($str, $encoding);
}
}