Altax\Util\Str::camel PHP Method

camel() public static method

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

Usage Example

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