Function __global->substr_replace

Definitions

sources_custom/phpstub.php

  • Replace text within a portion of a string.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$string string required parameter N/A N/A The subject string
$replacement string required parameter N/A N/A The replacement string
$start integer required parameter N/A N/A The start position of what's being replaced
$length ?integer Null N/A N/A The run-length of what is being replaced (null: go to end of string)

Return

  • A copy of string delimited by the start and (optionally) length parameters with the string given in replacement
  • Type: string
  • Set: N/A
  • Range: N/A