title: How To Make Json_encode PHP To An Text String Number
body: <p>Hello Everyone I Want To Ask How To Make Output Using Json_Encode To An Text
  Here's My Code</p>
  <p>Model</p>
  <pre><code>function count_topup($ID)
  {
      $this-&gt;db-&gt;select_sum(&quot;Jumlah&quot;);
      $this-&gt;db-&gt;from('topup');
      $this-&gt;db-&gt;where('id_user',$ID);
      $query= $this-&gt;db-&gt;get();
      return $query-&gt;result_array();
  }
  </code></pre>
  <p>Controller</p>
  <pre><code>  $data['Count'] = $this-&gt;user_model-&gt;count_topup($ID);
  </code></pre>
  <p>View</p>
  <pre><code>&lt;?php echo json_encode($Count);?&gt;
  </code></pre>
  <p>it will give output [{&quot;Jumlah&quot;:&quot;150000&quot;}]</p>
  <p>How To Make Only showing 150000? Thanks For The Help</p>