Altax\Util\Str::camel PHP Méthode

camel() public static méthode

Convert a value to camel case.
public static camel ( string $value ) : string
$value string
Résultat string
    public static function camel($value)
    {
        return lcfirst(static::studly($value));
    }

Usage Example

Exemple #1
0
 public function testCamel()
 {
     $this->assertEquals("aaaBbbCcc", Str::camel("aaa_bbb_ccc"));
 }