3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'columns="4" link="file" ids="280,281,282,283,284,285,286,287,288"'; $replaced = str_replace([' ', '"'], ['&', ''], $string); echo $replaced;

preferences:
102.2 ms | 404 KiB | 5 Q