PHP Classes

File: examples/utils_number.php

Recommend this page to a friend!
  Classes of Everton da Rosa   XtPHP   examples/utils_number.php   Download  
File: examples/utils_number.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 9 years ago
Size: 321 bytes
 

Contents

Class file image Download
<?php
//Exemplo de utilização de XtUtils::number()

require '../utils.php';

$number = 1231698765.545;
$string = '861.843.9324,45';

echo
"<p>Converter o número $number para uma string:</p>";
echo
XtUtils::number($number);

echo
"<p>Converter a string $string para um número:</p>";
echo
XtUtils::number($string);

?>