Insert a php array into mysql table

Following code shows that how can insert php array into mysql table directly. Sometime we have big array data and need to insert in mysql table, in that case following code will helpful for you. $array = array( “a” => array(“100″,”test1”), “b” => array(“200″,”test2”), “c” => array(“300″,”test3”), ); foreach ($array as $key => $value) { … More Insert a php array into mysql table