How to extract a specific index?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amit

    #1

    How to extract a specific index?


    I'm learning how to upload in PHP and for security reason I'm checking
    file mime when it is uploaded. Now how can I get access to the mime
    part. I can get the details using a foreach loop but don't know how to
    get the mime part.

    Array ( [0] =280 [1] =184 [2] =2 [3] =width="280"
    height="184" [bits] =8 [channels] =3 [mime] =image/jpeg )

    Thanks.

  • amit

    #2
    Re: How to extract a specific index?

    On Mar 24, 2:37 pm, amit <amit.ko...@gma il.comwrote:
    I'm learning how to upload in PHP and for security reason I'm checking
    file mime when it is uploaded. Now how can I get access to the mime
    part. I can get the details using a foreach loop but don't know how to
    get the mime part.
    >
    Array ( [0] =280 [1] =184 [2] =2 [3] =width="280"
    height="184" [bits] =8 [channels] =3 [mime] =image/jpeg )
    >
    Thanks.

    Please ignore this thread. Now, I know how.

    Thanks.

    Comment

    Working...