A
Anonymous
Guest
Hello everyone. I'm a self learner that is very new to programming.
Write a function(use native php) that accepts an array of opening or closing tags (for example, “<a>”, “</td>”) at the input, and returns the result of the correctness check: i.e. whether the sequence of tags accepted by the function is the structure of a valid HTML document. For example, the sequence “<a>”, “<div>”, “</div>”, “</a>”, “<span>”, “</span>” is the correct structure, and the sequence “<a > ”,“ <div> ”,” </a> ”- incorrect structure.
Write a function(use native php) that accepts an array of opening or closing tags (for example, “<a>”, “</td>”) at the input, and returns the result of the correctness check: i.e. whether the sequence of tags accepted by the function is the structure of a valid HTML document. For example, the sequence “<a>”, “<div>”, “</div>”, “</a>”, “<span>”, “</span>” is the correct structure, and the sequence “<a > ”,“ <div> ”,” </a> ”- incorrect structure.