title: store bigint in php variable
body: <p>I wrote a function to add a comma to every 8 zero of my number</p>
  
  <p>I need to store value in PHP variable or array, but it's saved as "1.0E+30"</p>
  
  <p>here is my PHP code:</p>
  
  <pre><code>function SplitHex($number) {
  $number_split = str_split($number,1);
  $number_split_revers = array_reverse($number_split);
  $i = 0;
  foreach ($number_split_revers as $key =&gt; $value ) {
      if ( $value == 0) {
          $i++;
          if ( $i == 8 ) {
          $number_split_revers[$key] = str_replace(0,",0",$value);
          $i=0;
          }
      }
  
  }
      $final = '';
      $number_final = array_reverse($number_split_revers);
      foreach ($number_final as $value ) {
          $final .= $value;   
      }
  
  //$final = strval(implode("",$number_final));
  
  return $final;
  </code></pre>
  
  <p>and I call the function :</p>
  
  <pre><code>$test[2] = SplitHex(1000000000000000000000000000000);
  var_dump ($test);
  print_r ($test);
  </code></pre>
  
  <p>the output of <code>echo</code> <code>print_r</code> <code>var_dump</code> are all same :</p>
  
  <pre><code>1.0E+30
  </code></pre>
  
  <p>but it must be <code>1000000,00000000,00000000,00000000</code></p>
  
  <p>I searched a lot but couldn't find the right solution for this problem</p>