I’ve faced with converting Date to String by using date() function in php.
Simply, I just want to print this ’17th of January 2012′ by using format character.
print date("jS of F Y");
However, the output was 17th 2012f January 2012 and.. is there any way to escape ‘o’ string to get the output I want.
Escape the
owith a backslash:From the documentation: