PHP - foreach Loops and Associative Arrays

preview_player
Показать описание
This video talks about the differences between PHP simple and Associative arrays as well as how to use a foreach method to loop through either kind of array.

Рекомендации по теме
Комментарии
Автор

Thank you for making this vedio. Your voice is so smooth!

dayoungkim
Автор

Superb Sir, I just have clear my doubts, Now seeking foreach() for 2D arrays.
Taking Fight_Club Values was Awesome!!

shahrukhfaruki
Автор

just wow, associative array and foreach always confuses me, thank u learned soo much

thomasaldar
Автор

Thanks, was really clear. Nice video!

adrianoprovenzano
Автор

How do you get to apply 'foreach' to make all names printed in a different colour. I have a phpmailer array with several error messages but my page is dark and they default to black.

chome
Автор

Steve Rogers= "I understood that (fight club) reference!"

Venezuelangel
Автор

Awesome tutorial, will you also cover pdo insert, update and viewing data in the future?

ikhsanhaikal
Автор

sir, how can i store an array of data (into a new table in the DB) from the result of a query? I already have this: $result=mysqli_query($con, $query); It displays the correct rows of information. But I want to store thar new information into a new table in the DB. How to do it? I used while loop (because i just couldnt figure out how to do using foreach loop) but only 1 row is inserted into the table. I wonder why. Here's my while loop: "INSERT INTO...} . It insert only 1 row. Further to it, the DB duplicates everytime i refresh the browser. Im stuck....

mnunez
visit shbcf.ru