Jump to content

Array


0perator

Recommended Posts

Array ( [0] => black market [1] => internet protocol (IP) [2] => microshit (M$) [3] => prism2 [4] => omg (Oh My God) [5] => pfSense [6] => hackers 2 - operation takedown [7] => nullbyte (%00) [8] => hypertext markup language (HTML) [9] => blue screen of death (BSoD) [10] => cyper [11] => redhat package management (RPM) [12] => h4x0r [13] => pseudonym [14] => hackers [15] => cracker [16] => iceweasil [17] => code auditing [18] => redhat package management (RPM) [19] => repository [20] => sql injection [21] => )

 

 

thats the result of print_r($panagram)

 

now, the last entry into the array is not always 21.

 

so, how do i delete the last entry, i tried unset(end($panagram));

 

no luck.

 

cheers guys.

Link to comment
Share on other sites

i have not tested any of this code but it this should get the length of the array  $length= count($array_name);                                    this should give you the number of elements held with in the array

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.