title: How to create array using customize value?
body: <p>I have some values below:</p>
  
  <p>11 12 13.</p>
  
  <p>I need to make an array using this value. 
  array(11,12,13);</p>
  
  <p>I tried this code below : </p>
  
  <pre><code>$selected is the variable that contain the value 11 12 13 //Special Instruction
  foreach($selected as $key=&gt;$val)
  {
    $sel.=$val;
    $sel.=",";
  }
   $str = rtrim($sel,',');
   // echo $str;
   $shortlist = array_map('trim', explode(',',$str));
  </code></pre>
  
  <p>I need help to make an array like array(11,12,13).Any idea?</p>