Topic: shamsi<=>miladi in php and xajax

hi
I need to function for convert miladi to shamsi date and recursive
I want to call this function in xajax