jomali:
Use this:
echo preg_replace('#(\d{2})/(\d{2})/(\d{4})#' , "\\3-\\2-\\1", '24/07/2013'
); RESULT => 2013-07-24
Alejandro M.S
-Mensagem original-
De: jomali [mailto:jomali3...@gmail.com]
Enviada em: sexta-feira, 26 de julho de 2013 17:38
Para: Robert Cummings
Cc: Karl-Arne Gjersøy
Use this:
echo preg_replace('#(\d{2})/(\d{2})/(\d{4})#' , "\\3-\\2-\\1", '24/07/2013'
); RESULT => 2013-07-24
Alejandro M.S
-Mensagem original-
De: Jim Giner [mailto:jim.gi...@albanyhandball.com]
Enviada em: sexta-feira, 26 de julho de 2013 11:12
Para: php-general@lists.php.net
Assunto
2 matches
Mail list logo