Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 54 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Text:: (3 methods):
  length()
  exact()
  test()


Class: Text  - X-Ref

length($value = '')   X-Ref
LEN.

param: mixed $value String Value

exact($value1, $value2)   X-Ref
Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise.
EXACT is case-sensitive but ignores formatting differences.
Use EXACT to test text being entered into a document.

param: mixed $value1 String Value
param: mixed $value2 String Value

test($testValue = '')   X-Ref
RETURNSTRING.

return: null|string
param: mixed $testValue Value to check