/**
* Remove delimiters and join the result into a string
*
* @param mix $value
* @param string $delimiter
* @return mix
*/
function removeDelimiter($value, $delimiter){
$split = explode($delimiter, $value);
$count = count($split);
if($count > 1):
for ($x = 0; $x < $count; $x++):
$join .= $split[$x];
endfor;
return $join;
else:
return false;
endif;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.