How do we remove element from array?

    You Can use this function to do so
    <?php
    function remove_element($arr_content,$arr_value) {

       return
    array_values(array_diff($arr_content, array($arr_value)));

    }
    ?>
    4
    Average: 4 (1 vote)