I am working on a website where we need to remove the index of an array where type is integer. Have you any idea or suggestion regarding. My array looks like this :
Array
(
[0] => first
[first] => second
[1] => second
[second] => second
[2] => third
[third] => third
[3] => forth
[forth] => v
[4] => fifth
[fifth] => fifth
)
How we can remove integer index from array.One more thing to note that we have not static array we do not know how many index is there.
Need like this :
Array
(
[first] => second
[second] => second
[third] => third
[forth] => v
[fifth] => fifth
)
mysqli_fetch_assoc
instead ofmysqli_fetch_array
– Yotam Omer Jul 6 at 4:13