Web Analytics

PHP preg_replace_callback() Function

Regex FunctionPHP 4.0.5+

The preg_replace_callback() function performs a specific operation.

Syntax

preg_replace_callback($param): mixed

Parameters

Parameter Type Description
$param mixed Function parameter

Return Value

Returns the result of the operation.

Try It Online

Output
Click Run to execute your code

Common Use Cases

  • Data processing
  • Common PHP operations