Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created August 21, 2017 06:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save phpfiddle/2623c2010708790ab6ff28ae9eeb10e4 to your computer and use it in GitHub Desktop.
[ Posted by Jeganrajaiya ] string-to-array
<?php
$str = "parital Under production";
$result = explode(' ', $str, 2);
print_r($result);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment