Php foreach code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Php foreach code

i don't know how to print only values from an array in a multidimensional associative array. i'm trying with a foreach, but it prints every values of every array. can someone explain me how? ^^ if you need the code, i will post it. thanks

30th Oct 2017, 6:18 AM
T. Rex (darkfire)
T. Rex (darkfire) - avatar
4 Answers
0
i also tried with $print_r, but it gives me error about parsing array to string? i'm sorry, i'm new to this language, ^^"
30th Oct 2017, 6:27 AM
T. Rex (darkfire)
T. Rex (darkfire) - avatar
0
w3school and stackoverflow == bible of programmer 😁😂
30th Oct 2017, 6:34 AM
T. Rex (darkfire)
T. Rex (darkfire) - avatar
0
You can use var_dump($arr)
31st Oct 2017, 2:35 PM
vaibhav sethi
vaibhav sethi - avatar
0
i solve the problem, just using foreach
31st Oct 2017, 4:06 PM
T. Rex (darkfire)
T. Rex (darkfire) - avatar