I want to create a loop that prints a array as a '' but also keeps checking if the value is an array as well so that I can loop through that array too.
But I don't fully understand how I can keep checking if value is a array without using a very large amount of if statements.
My array:
$stuff = array('germany', 'java', 'help', array('hello', 'help', array('save', 'me', 'python')));
Output:
<ul>
<li>germany</li>
<li>java</li>
<li>help</li>
<ul>
<li>hello</li>
<li>help</li>
<ul>
<li>save</li>
<li>me</li>
<li>python</li>
</ul>
</ul>
</ul>