JonathanTorres\Construct\Helpers\Str::toLower PHP Method

toLower() public method

Convert string to lower case.
public toLower ( string $string ) : string
$string string
return string
    public function toLower($string)
    {
        return strtolower($string);
    }

Usage Example

Beispiel #1
0
 /**
  * Save versions of project names.
  *
  * @return void
  */
 protected function saveNames()
 {
     $names = $this->str->split($this->settings->getProjectName());
     $this->vendorLower = $this->str->toLower($names['vendor']);
     $this->vendorUpper = $this->str->toStudly($names['vendor']);
     $this->projectLower = $this->str->toLower($names['project']);
     $this->projectUpper = $this->str->toStudly($names['project']);
 }