Advertisement
irokemr

Reemplazar texto en php

Dec 30th, 2020
1,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.11 KB | None | 0 0
  1. <?php
  2.  
  3. $texto = "ejemplo";
  4. $texto = preg_replace('(ejemplo)', 'example', $texto);
  5.  
  6. echo $texto;
  7.  
  8.  
  9.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement