Strings Php

print str_replace('{class}',$my_class,
                  'A
                   B
');
?>