I need to remove [picture_names] from my array. Help me to remove this?
            Asked
            
        
        
            Active
            
        
            Viewed 71 times
        
    -6
            
            
         
    
    
        Marcos Vinicius
        
- 207
- 3
- 14
- 
                    2[unset](http://php.net/manual/en/function.unset.php)`($array[1]["picture_names"])` – apokryfos Jul 18 '16 at 08:08
- 
                    This question shows little to no research effort on behalf of the OP. – apokryfos Jul 18 '16 at 08:10
- 
                    Please remember to use google and do some research before asking on SO. – Epodax Jul 18 '16 at 08:11
- 
                    1Possible duplicate of [PHP - remove element in multidimensional array](http://stackoverflow.com/questions/21249041/php-remove-element-in-multidimensional-array) – J. Chomel Jul 18 '16 at 08:22
- 
                    2In future, please type your code in rather than attaching an image - makes it much easier to help when it is copy/pastable! – James Elderfield Jul 18 '16 at 08:55
- 
                    1are you sure you aren't posting private information of some person without their consent? if not, do you think it's acceptable, objectively? – Wes Jul 18 '16 at 19:56
2 Answers
2
            
            
        - 
                    Just a note, `unset` is a [language construct, not a function](http://stackoverflow.com/questions/1180184/what-is-the-difference-between-a-language-construct-and-a-built-in-function-in). Yes, there is a difference – Machavity Jul 18 '16 at 20:02
0
            
            
        You can do it with unset() function. Documentation here.
$result = unset($yourArray['picture_names']);
var_dump($result);
 
    
    
        Chonchol Mahmud
        
- 2,717
- 7
- 39
- 72

