<?php $quote = "A good traveler leaves no tracks, <br />and a skillful speaker is well rehearsed.<br />";echo "With single quotes:\n";echo preg_replace('/(<br \/>)/',' \n',$quote);echo "\n\nWith double quotes:\n";echo preg_replace('/(<br \/>)/'," \n",$quote); ?>
Standard input is empty
With single quotes: A good traveler leaves no tracks, \nand a skillful speaker is well rehearsed. \n With double quotes: A good traveler leaves no tracks, and a skillful speaker is well rehearsed.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!