Posted By

zack on 06/18/11


Tagged


Versions (?)

php string replace


 / Published in: PHP
 

URL: http://php.net/manual/en/function.str-replace.php

  1. <?php
  2. // Provides: You should eat pizza, beer, and ice cream every day
  3. $phrase = "You should eat fruits, vegetables, and fiber every day.";
  4. $healthy = array("fruits", "vegetables", "fiber");
  5. $yummy = array("pizza", "beer", "ice cream");
  6. ?>

Report this snippet  

You need to login to post a comment.