Adding a value to all elements in an array (php) -


I have a query to get an array from the database

  $ result = mysqli_query (Stop $ con, "Select from time to time" `` `` `1`); while ($ line = mysqli_fetch_array ($ result)) {echo $ line ['Time_D']." & Lt; Br> ";}  

If I'm not mistaken, this array ($ line) has a lot of time.

Now I have 10 minutes How can I do this element in the array?

.)

  $ result = mysqli_query ($ con, "Select from time to time" `` `` `` `1`); // Get results of database ($ line = mysqli_fetch_array ($ result)) {$ rows [] = $ line ['Time_D']; // Store all the bars in an array} print_r ($ rows); Echo "& lt; br & gt;"; $ Time_difference = 600; $ I = =; While (($ i) & lt; (count ($ rows)) {$ lines [$ i] = (strotom ($ rows [$ i])) + ($ time_difference); // timestamp, because, well, php and time ... $ rows [$ i] = date ('h: i: s', ($ line [$ i])); // Time $ i = $ i +1 from timestamp; } Print_r ($ rows);  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -