UTILITY

remove()

Remove one or more literal strings.

Signature

string remove(string $text, string|array $search)

Example

remove('draft internal post', ['draft ', 'internal ']); // 'post'

Available from: 1.5.0

Reference navigation

Previous: redact()

Next: replace_first()

Back to utilities