With the exception of using foreach to loop through an array and just add the required elements to a new array, recreate the original array from that new array and then unsetting the new array does anyone know of a way to remove specific elements from an array?
I have an array, $remIDAr, which contains a set of numbers as the values, I want to remove the values from another array where the key is the same as a value in $remIDAr.
What I really need it a function called array_remove ($array, $val) where the key named $val is removed from the array, except I can't seem to find one.
Also, not really related, but normally if you have the following setup, or something similar, say on a login page
Username Field
Password Field
Submit Button
IE, and most other browsers give you the option of saving the password, so that when you type in the username the password just pops up.
Is there any way of disabling that?
I tried creatings a random 8 char string and using that to make the name of the password field random, ie
<input type='password' name='password$randString'>
But IEs save stuff still worked, I don't even know how that save stuff works, but there must be some way to disable it surely?
Cheers for any help