MCPcopy Create free account
hub / github.com/apache/thrift / substr

Method substr

lib/php/lib/StringFunc/Core.php:33–41  ·  view source on GitHub ↗

* @param string $str * @param int $start * @param int|null $length * @return false|string */

($str, $start, $length = null)

Source from the content-addressed store, hash-verified

31 * @return false|string
32 */
33 public function substr($str, $start, $length = null)
34 {
35 // specifying a null $length would return an empty string
36 if ($length === null) {
37 return substr((string) $str, $start);
38 }
39
40 return substr((string) $str, $start, $length);
41 }
42
43 /**
44 * @param string $str

Callers 15

program_nameFunction · 0.45
directory_nameFunction · 0.45
clean_up_doctextFunction · 0.45
mainFunction · 0.45
get_integerMethod · 0.45
get_identifier_nameMethod · 0.45
validate_uuidMethod · 0.45
add_includeMethod · 0.45
set_namespaceMethod · 0.45
parse_optionsMethod · 0.45
perl_namespace_dirsMethod · 0.45

Calls

no outgoing calls

Tested by 15

program_nameFunction · 0.36
directory_nameFunction · 0.36
extract_class_definitionFunction · 0.36
source_dirFunction · 0.36
normalize_for_compareFunction · 0.36
extract_enum_definitionFunction · 0.36
registerTestMethodsFunction · 0.36
WildcardPatternMethod · 0.36
subStringMethod · 0.36
addPatternMethod · 0.36
TextMethod · 0.36
spliceLineMethod · 0.36