Insert Multidimensional Array into Database with PHP
===

how can I insert this array into my database? supposing I already have a database?

    if(isset($_POST['myname'], $_POST['myage'], $_POST['mygen']) === true){
    
    $array = array($_POST['myname'], $_POST['myage'], $_POST['mygen']);
    
    foreach ($array as $i => $values) {
        print "<pre>$i {\n";
        foreach ($values as $key => $value) {
            print "    $key => $value\n";
        }
        print "}\n</pre>";
    }
    }

please help :(