mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-07 13:31:31 -07:00
Version 3 release. Major re-write
This commit is contained in:
parent
127ad7e14a
commit
f9b49002c7
1507 changed files with 6592 additions and 94204 deletions
11
SpacesAPI/StringFunctions.php
Normal file
11
SpacesAPI/StringFunctions.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace SpacesAPI;
|
||||
|
||||
trait StringFunctions
|
||||
{
|
||||
public function pascalCaseToCamelCase(string $name): string
|
||||
{
|
||||
return strtolower(preg_replace("/([a-z])([A-Z])/", "$1_$2", $name));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue