FOF30\Inflector\Inflector::variablize PHP Method

variablize() public method

Returns camelBacked version of a string. Same as camelize but first char is lowercased.
See also: camelize
public variablize ( string $string ) : string
$string string String to be camelBacked.
return string
    public function variablize($string)
    {
        $string = self::camelize(self::underscore($string));
        $result = strtolower(substr($string, 0, 1));
        $variable = preg_replace('/\\w/', $result, $string, 1);
        return $variable;
    }