Skip to content

Search for highest key/index in an array

How can I get the highest key/index in an array with php? I know how to do it for the values. E.g.: from this array I would like to get 10 as an integer value: I know how I could code it but I was asking myself if there is a function for this as well. Answer This should work

Page redirect after certain time PHP

There is a certain PHP function for redirecting after some time. I saw it somewhere but can’t remember. It’s like the gmail redirection after logging in. Please, could anyone remind me? Answer this is the php way to set header which will redirect you to wherever.php in 5 seconds Remember that head…

echo MySql column names and values

What I need is to have a list name => value to be able to make MySql queries. My problem is, I can access MySql records, but I also need to access table’s column names, what should I change in my code? Thanks ok, so now why can’t I join the values to then make my sql queries? I just