This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // https://3v4l.org/5fRhD | |
function ArrayCleaner($input) { | |
foreach ($input as &$value) { | |
if (is_array($value)) { | |
$value = ArrayCleaner($value); | |
} | |
} | |
return array_filter($input, function($item){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="site"> | |
<header id="header">Heading</header> | |
<main id="content"> | |
<p id="one">First Paragraph</p> | |
<p id="two">Second Paragraph</p> | |
<p id="third">Third Paragraph</p> | |
<p id="fourth"> | |
<table> | |
<caption>Original Table</caption> | |
<thead> |