Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Created February 14, 2013 15:40
Show Gist options
  • Save PabloVallejo/4953612 to your computer and use it in GitHub Desktop.
Save PabloVallejo/4953612 to your computer and use it in GitHub Desktop.
<php
$string = "This is a sample paragraph, it happens to be very long and I want add a space every 20 characters";
echo chunk_split( $string, 20, ' ' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment