Function __global->preg_replace_callback

Definitions

sources_custom/phpstub.php

  • Perform a regular expression search and replace using a callback.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$pattern string required parameter N/A N/A The pattern
$callback mixed required parameter N/A N/A The callback
$subject string required parameter N/A N/A The subject string
$limit integer -1 N/A N/A The limit of replacements (-1: no limit)
$count integer 0 N/A N/A Number of replacements made

Return

  • The string with replacements made (null: error)
  • Type: ?string
  • Set: N/A
  • Range: N/A