sábado, 19 de diciembre de 2015

Function preg_replace() replace and regular expresion

<?php
   $copy_date = "Copyright 1999";
   $copy_date = preg_replace("([0-9]+)", "2000", $copy_date);
   
   print $copy_date;
?>
This will produce the following result −
Copyright 2000

No hay comentarios:

Publicar un comentario