Guest User

google chart

a guest
Mar 14th, 2018
54
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.  
  4. $exibir_chart = '';
  5. for( $x=0; $x < count($array_dados['dados']['dias']); $x++ )
  6. {
  7.     $exibir_chart .= '[\'' . $array_dados['dados']['dias'][$x] . '\', ' . str_replace(',', '.', $array_dados['dados']['meta'][$x]) . ', ' . (isset($array_dados['dados']['realizado'][$x])?str_replace(',', '.', $array_dados['dados']['realizado'][$x]):'0.00' ) . '],' . PHP_EOL;
  8. }
  9. $exibir_chart = substr(trim($exibir_chart), 0, -1);
  10. echo $exibir_chart;
  11.  
  12.  
  13.  
  14. ?>
RAW Paste Data Copied