Useful Code Snippets / Tutorials – PHP
- 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
… [ Read more ]
Subjects: PHP, Site Design (Architecture, Coding, UI, etc.)