Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print multidimensional array

Status
Not open for further replies.

tiptopweb

Programmer
Feb 21, 2017
1
0
0
FR
Hi

I need to display below with values from mysql

$resource = $conn->query("SELECT * FROM table");
while ( $rows = $resource->fetch_assoc() ) {
$title=$rows["title"];

$test = ["array"=>[
"modele"=>"1",
"options"=>[
"option1"=>"1",
"list"=>[
[
"title"=>"$title",
]
]
]
]];
}

How I can display a list of the title values inside the array ?

Thanks for your help !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top