Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to delete array element

    array
    (
    [0]=>array
    (
    [0]=>1
    [id]=>1
    [1]=>adidas
    [name]=>adidas
    [2]=>hot
    [recomment]=>hot
    [3]=>a
    [initial]=>4
    [4]=>apple.png
    [pic]=>apple.png
    [5]=>head.png
    [pic2]=>head.png
    )
    [1]=>array

    Hi,In my site http://www.gigxon.com I want The delete key is an array,example,i not want to see [0] => 1 [1] => Adidas [2] => hot,How to do? thanks
    Last edited by VIPStephan; 11-22-2011 at 10:44 AM. Reason: removed link (china wholesale websites make me suspicious)

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Is that a JavaScript array? You have written it much more like in a PHP syntax

    Anyway JavaScript makes a firm separation between Arrays (ordered lists) and Objects (unordered lists). Your list looks a combinations, which is not quite correct.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,786
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    In any case this is in the wrong forum. So please clarify which programming language this is and we’ll move the thread accordingly.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •