save array in mysql php

Solutions on MaxInterview for save array in mysql php by the best coders in the world

showing results for - "save array in mysql php"
Audwin
02 Sep 2018
1$names_arr = array(“Toni Abbah”,”Anastacia Mast”,”Soji Igbonna”);
2// Associative Array
3$users_arr[] = array(“username”=>”Torah”,”name”=>”Toni Abbah”);
4$users_arr[] = array(“username”=>”Anamast”,”name”=>”Anastacia Mast”);
5$users_arr[] = array(“username”=>”soggy”,”name”=>”Soji Igbonna”);
6// Serialize the Array
7$names_str = serialize($names_arr);
8$users_str = serialize($users_arr);