title: How to save multiple repeatable fields as array in database?
body: <p>On the theme im working i'm trying to make slideshow. I have everything set so far i just don't understand how to save them in database when there are multiple slides.</p>
  
  <p>I will skip the code as it's very large ill just add example of input values.</p>
  
  <p>Each slide is made of image upload field(which is basically text field that holds link to image) and textarea field for the text in slide.</p>
  
  <p>So values of the slide are like this.</p>
  
  <pre><code>Slide 1 -&gt; $slide[image][0]  -- $slide[text][0]
  
  Slide 2 -&gt; $slide[image][1]  -- $slide[text][1]
  
  Slide 3 -&gt; $slide[image][2]  -- $slide[text][2]
  </code></pre>
  
  <p>It's a WordPress theme so wordpress it self is capable to save an array when it recognize it. And if anyone is familiar theme is built upon Options Framework.</p>
  
  <p>When i save this, this is what i get in database.</p>
  
  <pre><code>a:1:{s:13:"slide_example";a:1:{s:5:"image";s:0:"";}}
  </code></pre>
  
  <p>when (i guess) it should be like this</p>
  
  <pre><code>a:1:{s:13:"slide_example";a:1:{s:5:"image";s:0:"slide text";};a:2:{s:5:"image";s:0:"slide text";};a:3:{s:5:"image";s:0:"slide text";}}
  </code></pre>