Go to: Synopsis. Return value. Related. MEL examples.
int isValidObjectName(string $name)
None
Variable Name | Variable Type | Description |
---|---|---|
$name | string | The name string to test. |
isValidObjectName("Name"); // Will succeed. isValidObjectName(" Name"); // Will fail. isValidObjectName("1 Name"); // Will fail. isValidObjectName("New Name"); // Will fail. isValidObjectName("New_Name"); // Will succeed. isValidObjectName("New Name 1"); // Will fail.