Go to: Synopsis. Return value. Related. MEL examples.
int isValidUiName(string $name)
int : True if the name is valid, false otherwise. |
Variable Name | Variable Type | Description |
---|---|---|
$name | string | The name string to test. |
isValidUiName("Name"); // Will succeed. isValidUiName(" Name"); // Will fail. isValidUiName("1 Name"); // Will fail. isValidUiName("New Name"); // Will succeed. isValidUiName("New_Name"); // Will succeed. isValidUiName("New Name 1"); // Will succeed.