Change months language with str_replace

If you want translate english month from you text, use str_replace to find and change text. This is example function.

Create function: find

 function find($text)
	$from  = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
    $to = array('Month1', 'Month2', 'Month3', 'Month4', 'Month5', 'Month6', 'Month7', 'Month8', 'Month9', 'Month10', 'Month11', 'Month12');
	return str_replace($from, $to, $text);

Now we use find function for replace month in text

<?php echo find("January"); ?>
output: Month1

Now you can find and easy replace all month or other text.