Created
March 13, 2016 22:44
-
-
Save immanuelsun/b9e85acbd880d9d49658 to your computer and use it in GitHub Desktop.
Revisions
-
immanuelsun created this gist
Mar 13, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ function strip_zeros_from_date($marked_string = "") { // remove the marked zeros $no_zeros = str_replace("*0", "", $marked_string); // remove any remaining zeros $cleaned_string = str_replace("*", "", $no_zeros); return $cleaned_string; }