how to divide array which contains numeric and characters into two arrays and print them?
<p>Here my question is how to divide an array which contains both numeric and characters. for example: 125 mg. I am getting this value from database and i am trying to split it but i am not able to divide it . Can anybody give the suggestions and i google a lot.</p>

<p>This is the code example:</p>

<pre><code>&lt;?php 
$sql="select * from medication_history where id=$id";
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
$dose=$row['dose'];
//echo $dose;
echo str_word_count($dose);
$dose=implode('',explode(',',$dose));
//print_r ($dose);
 echo $dose;?&gt;
</code></pre>
