- Remove or replace a block of text with definable starting and ending pattern.
$temp = preg_replace(“‘
‘si”, “”, $temp);
- Modify group of links.
This could be useful, for example, if you have links to multiple articles on a website that then redesigns and thus all its URLs change.
- What’s the easiest way to remove characters from the end of a
Subjects: PHP, Site Design (Architecture, Coding, UI, etc.)