title: Warning: array_values() expects parameter 1 to be array
body: <p>I insert data array into database like this :</p>
  
  <pre><code>$value['gallery_data'] = array();
  $value['gallery_data'] = serialize((array(array_values("name"), array_values("url"), array_values("type")))); // LINE 843
  </code></pre>
  
  <p>In database: </p>
  
  <pre><code>a:3:{i:0;N;i:1;N;i:2;N;}
  </code></pre>
  
  <p>I see this error in action: </p>
  
  <pre><code>Warning: array_values() expects parameter 1 to be array, string given in C:\xampp\htdocs\user\modules\editnews.php on line 843
  
  Warning: array_values() expects parameter 1 to be array, string given in C:\xampp\htdocs\user\modules\editnews.php on line 843
  
  Warning: array_values() expects parameter 1 to be array, string given in C:\xampp\htdocs\user\modules\editnews.php on line 843
  </code></pre>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>I need to insert this format for multiple array in database:</p>
  
  <pre><code>a:3:{i:0;a:4:{i:0;s:48:"uploads/media/galleries/nature/butterfly_001.jpg";i:1;s:43:"uploads/media/galleries/nature/IMG_4181.jpg";i:2;s:43:"uploads/media/galleries/nature/swan_002.jpg";i:3;s:45:"uploads/media/galleries/nature/zzmed copy.jpg";}i:1;a:4:{i:0;s:19:"test_title";i:1;s:20:"test_title1";i:2;s:25:"test_title2";i:3;s:24:"677777777777777777777777";}i:2;a:4:{i:0;s:19:"test_alt";i:1;s:21:"test_alt1";i:2;s:21:"test_alt2";i:3;s:26:"77888888888888888888888888";}}
  </code></pre>
  
  <p>how do can i fix this ?</p>