Skip to content

Instantly share code, notes, and snippets.

@ilyasozkurt
Created February 15, 2023 19:57
Show Gist options
  • Save ilyasozkurt/be2504f29fc19fa27dcbdb9131d3514e to your computer and use it in GitHub Desktop.
Save ilyasozkurt/be2504f29fc19fa27dcbdb9131d3514e to your computer and use it in GitHub Desktop.
<?php
$str = "Thisisaphpstring";
$output = implode(' ', str_split($str, 4));
echo $output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment