I am working with objects. I have three functions where I don't undertand very well and I would like some feedback about your opinion guys.
PHP Code:function strip_zeros_from_date ($marked_string="")
$no_zeros= str_replace('*0', '', $marked_string);
$cleaned_string = str_replace('*', '', $no_zeros);
return $cleaned_string:
}
function redirect_to($location=NULL){
if($location !=NULL) {
header("location: {$location}");
exit;
}
}
function output_message($message="") {
if (!empty($message)){
return "<p class=\"message\">{message}</p>";
}else {
return"";
}
}







Bookmarks