# Removing a value from array trouble

**URL:** <https://forum.kirupa.com/t/removing-a-value-from-array-trouble/140381>\
**Category:** Uncategorized\
**Created:** [March 10, 2005, 4:46pm UTC](https://forum.kirupa.com/t/removing-a-value-from-array-trouble/140381 "2005-03-10T16:46:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquid](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@liquid](https://forum.kirupa.com/u/liquid)\
**Post date:** [March 10, 2005, 4:46pm UTC](https://forum.kirupa.com/t/removing-a-value-from-array-trouble/140381/1 "2005-03-10T16:46:49Z")

</div>

Hello all!

I am trying to remove a specific value from an array. According to [php.net](http://php.net) the unset() method should work.

```php
unset($row['assoc']); <-- does not work but
unset($row[0]); <-- does work but not what I need

```

I need to be able to remove the value by associative call not numeric…

Any help would be greatly appreciated using the above method or any other way to remove a specific value from array??

Thanks in advance
