Advertisement
Guest User

Quotation mark conversion: vertical to curly

a guest
Jun 5th, 2011
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2. function doitwell($text)
  3. {
  4. $original=array(' "', '" ');
  5. $replaced=array(' “', '” ');
  6. return str_replace($original,$replaced,$text);
  7. }
  8.  
  9. $tryitnow = doitwell('We "see" if "it" works or not');
  10. echo $tryitnow;
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement