Usage

Object Syntax: obj.starts(str string)
Returns true or false.

Explanation

Returns true if the variable (obj) starts with the string input, and returns false if it does not start with the string input.

Example

function onCreated() {
  temp.string = "foobarbaz";
  if (temp.string.starts("foo")) {
	echo("temp.string starts with 'foo'!");
  }
}

... Will output "temp.string starts with 'foo'!" in RC when on the serverside, or in your F2 menu when on the clientside.

Categories

CategoryFunctionClientside
CategoryFunctionServerside
CategoryObjectFunction

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki