# PHP array quickie

**URL:** https://forum.kirupa.com/t/php-array-quickie/229382
**Category:** programming
**Created:** [June 16, 2007, 3:22pm UTC](https://forum.kirupa.com/t/php-array-quickie/229382 "2007-06-16T15:22:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![onemhunki](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@onemhunki](https://forum.kirupa.com/u/onemhunki)
#### Post date: [June 16, 2007, 3:22pm UTC](https://forum.kirupa.com/t/php-array-quickie/229382/1 "2007-06-16T15:22:34Z")

</div>

```php

if (isset($_POST['borough'])) {
	$array = $_POST['borough'];
	foreach($array as $test)
	$bors .= "$test. 
";
}

```

New to arrays, can anyone tell me why this is only inserting full stops into my database?

Ta.
