Skip to content

Instantly share code, notes, and snippets.

@dcblogdev
Created August 16, 2013 16:14
Show Gist options
  • Save dcblogdev/6251264 to your computer and use it in GitHub Desktop.
Save dcblogdev/6251264 to your computer and use it in GitHub Desktop.
explode post example
<?php
//Blackpool North, Bispham, Cleveleys
$parts = explode(",",$_POST['area']);
echo '<pre>';
print_r($parts);
echo '</pre>';
//output:
Array
(
[0] => Blackpool North
[1] => Bispham
[2] => Cleveleys
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment