Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Last active March 1, 2021 15:58
Show Gist options
  • Save vyspiansky/6398255 to your computer and use it in GitHub Desktop.
Save vyspiansky/6398255 to your computer and use it in GitHub Desktop.
PHP: "soft" word wrap for URL
<?php
echo str_replace('/', '/<wbr>', $url);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment