What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-01 02:35:41
WordPress add query string to URL
PHPfunction shapeSpace_add_var($url, $key, $value) { $url = preg_replace('/(.*)(?|&)'. $key .'=[^&]+?(&)(.*)/i', '$1$2$4', $url .'&'); $url = substr($url, 0, -1); if (strpos($url, '?') === false) { return ($url .'?'. $key .'='. $v... Add solution -
PHP 2022-01-31 03:46:20
php remove anchor tag from string
$text = "<a href='http://www.google.com/'>Google1</a><br>" . "<a>Google2</a><br>" . "<afaketag href='http://www.google.com'>Google2</afaketag><br>" . ... Add solution -
Other 2021-11-21 21:54:41
regular expression to make slug for local language
//this slug with encoding for any language function CleanURL($string, $delimiter = '-') { // Remove special characters $string = preg_replace("/[~`{}.'\"\!\@\#\$\%\^\&\*\(\)\_\=\+\/\?\>\<\,\[\]\:\;\|\\\]/&q... Add solution
Best helpers
Ranking is empty