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:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Stringy;
|
namespace Stringy;
|
||||||
|
|
||||||
|
if (!function_exists('Stringy\create')) {
|
||||||
/**
|
/**
|
||||||
* Creates a Stringy object and returns it on success.
|
* Creates a Stringy object and returns it on success.
|
||||||
*
|
*
|
||||||
@@ -15,3 +16,4 @@ function create($str, $encoding = null)
|
|||||||
{
|
{
|
||||||
return new Stringy($str, $encoding);
|
return new Stringy($str, $encoding);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user