-1

Array ( [0] => Array ( [hashtag] => a7e87329b5eab8578f4f1098a152d6f4 [title] => Flower [order] => 3 )

[1] => Array
    (
        [hashtag] => b24ce0cd392a5b0b8dedc66c25213594
        [title] => Free
        [order] => 2
    )

[2] => Array
    (
        [hashtag] => e7d31fc0602fb2ede144d18cdffd816b
        [title] => Ready
        [order] => 1
    )

)

2
  • 1
    Please show us your best effort (code) - your question is unclear, read How to Ask! Commented Nov 4, 2022 at 7:24
  • Does this answer your question? PHP : echo Multidimensional Array Commented Nov 5, 2022 at 11:42

1 Answer 1

0

Assuming your data is correctly assigned to a variable with name $array

You can show all the data with Print_r($array); or var_dump($array);

You can loop through the array keys with:

foreach ($array as $key => $val)
    

e.g

foreach($array as $key => $val) {

    echo "<b>Key: ".$key."</b><br/>
    Hashtag: ".$val['hashtag']."<br>
    Title: ".$val['title']."<br/>
    Order: ".$val['order']."<br/><br/>";
}

Or you could assign it to a recursive function to print the multidimensional array.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.