title: How To convert string to Array in Twig
body: <p>what i Need:</p>
  
  <p>string as follows:</p>
  
  <pre><code>  ["Product_Name"]=&gt; string(362) "Top End Transport System,Band Combiner Devices,Our Mid Level Transport System,The Introductory Transport System,In-Line Amplification Systems,Intelligent Ethernet Access System,Ethernet Access System,Intelligent Ethernet Access System (Ieas 05),Intelligent Ethernet Access System (Ieas 06),Intelligent Ethernet Access System (Ieas 03),Ethernet Aggregation Device" }
  </code></pre>
  
  <ul>
  <li>Im using php slice function in such manner so that i should validate string till 5 string.</li>
  <li>ex: Top End Transport System, ur Mid Level Transport System,The Introductory Transport System,In-Line Amplification Systems,Intelligent Ethernet Access System.</li>
  <li>i need till first five string.</li>
  <li>i have refer article <a href="http://twig.sensiolabs.org/doc/filters/split.html" rel="nofollow">http://twig.sensiolabs.org/doc/filters/split.html</a></li>
  </ul>
  
  <p>here is  twig code:</p>
  
  <pre><code>            {% set foo = item.Product_Name|split(',') %}
              {{ dump (foo) }}
             {% for i in item.Product_Name|slice(0, 5) %}
              {{ dump(i) }}
              {% endfor %}
  </code></pre>
  
  <ul>
  <li>slice function is for array so , please tell how to convert product name to array in twig</li>
  </ul>