- print_r: documentation ( source)
- implode: documentation ( source)
- htmlspecialchars: documentation ( source)
- sprintf: documentation ( source)
<?php
$allowed = array('<p>', '<b>', '<i>', '<u>');
print_r(sprintf('Allowed HTML tags: %', htmlspecialchars(implode(', ', $allowed))));