php string replace


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.