function Global / preg_replace_array
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

preg_replace_array

preg_replace_array ( ) : string

Replace a given pattern with each value in the array in sequentially.

Parameters

  • $pattern string
  • $replacements array
  • $subject string