숫자(number) Sample

<?php
/**
 * Number helper
 *
 * Created on 2011. 11. 18.
 * @author 불의회상 <hoksi2k@hanmail.net>
 * @package helper
 * @subpackage controllers
 * @version 1.0
 */
class Number_hlp extends CI_Controller {
	function __construct()
	{
		parent::__construct();
		
		$this->load->helper('number');
	}
	
	function index() {
		$this->load->view('number_hlp_sample');
	}
}
<?php $this->load->view('inc/header')?>

<table class="tablesorter" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
  <th style="text-align:center" width="20%">구분</th>
  <th width="80%">결과</th>
</tr>
</thead>
<tr>
	<td>byte_format(456)</td>
	<td><?php echo byte_format(456)?></td>
</tr>
<tr>
	<td>byte_format(4567)</td>
	<td><?php echo byte_format(4567)?></td>
</tr>
<tr>
	<td>byte_format(45678)</td>
	<td><?php echo byte_format(45678)?></td>
</tr>
<tr>
	<td>byte_format(456789)</td>
	<td><?php echo byte_format(456789)?></td>
</tr>
<tr>
	<td>byte_format(3456789)</td>
	<td><?php echo byte_format(3456789)?></td>
</tr>
<tr>
	<td>byte_format(12345678912345)</td>
	<td><?php echo byte_format(12345678912345)?></td>
</tr>
<tr>
	<td>byte_format(123456789123456789)</td>
	<td><?php echo byte_format(123456789123456789)?></td>
</tr>
<tr>
	<td>byte_format(45678, 2)</td>
	<td><?php echo byte_format(45678, 2)?></td>
</tr>
</table>

<?php $this->load->view('inc/footer')?>

© Copyright by hoksi(Page rendered in 0.0051 seconds)