lib/Inflector.php
public function uncamelize($s)
	{
		$normalized = '';

		for ($i=0,$n=strlen($s); $i<$n; ++$i)
		{
			if (ctype_alpha($s[$i]) && self::is_upper($s[$i]))
				$normalized .= '_' . strtolower($s[$i]);
			else
				$normalized .= $s[$i];
		}
		return trim($normalized,' _');
	}
public function uncamelize($s)
	{
		$normalized = '';

		for ($i=0,$n=strlen($s); $i<$n; ++$i)
		{
			if (ctype_alpha($s[$i]) && self::is_upper($s[$i]))
				$normalized .= '_' . strtolower($s[$i]);
			else
				$normalized .= $s[$i];
		}
		return trim($normalized,' _');
	}
public function uncamelize ( $ s ) { $ normalized = '' ; for ( $ i = 0 , $ n = strlen ( $ s ) ; $ i < $ n ; ++ $ i ) { if ( ctype_alpha ( $ s [ $ i ] ) && self :: is_upper ( $ s [ $ i ] ) ) $ normalized .= '_' . strtolower ( $ s [ $ i ] ) ; else $ normalized .= $ s [ $ i ] ; } return trim ( $ normalized , ' _' ) ; }
Convert a camelized string to a lowercase, underscored string.

@param string $s string to convert
@return string
Convert a camelized string to a lowercase underscored string .