????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.188.100.179
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/math/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/math/number_format_multichar.phpt
--TEST--
Test number_format() - multiple character separator support
--FILE--
<?php
$values = array(1234.5678,
				-1234.5678,
				1234.6578e4,
				-1234.56789e4,
				0x1234CDEF,
				02777777777,
				"123456789",
				"123.456789",
				"12.3456789e1",				
				null,
				true,
				false);	

echo " number_format tests.....multiple character decimal point\n";
for ($i = 0; $i < count($values); $i++) {
	$res = number_format($values[$i], 2, '&#183;', ' ');
	var_dump($res);
}

echo "\n number_format tests.....multiple character thousand separator\n";
for ($i = 0; $i < count($values); $i++) {
	$res = number_format($values[$i], 2, '.' , '&thinsp;');
	var_dump($res);
}

echo "\n number_format tests.....multiple character decimal and thousep\n";
for ($i = 0; $i < count($values); $i++) {
	$res = number_format($values[$i], 2, '&#183;' , '&thinsp;');
	var_dump($res);
}
?>
--EXPECTF--
 number_format tests.....multiple character decimal point
string(13) "1 234&#183;57"
string(14) "-1 234&#183;57"
string(18) "12 346 578&#183;00"
string(19) "-12 345 678&#183;90"
string(19) "305 450 479&#183;00"
string(19) "402 653 183&#183;00"
string(19) "123 456 789&#183;00"
string(11) "123&#183;46"
string(11) "123&#183;46"
string(9) "0&#183;00"
string(9) "1&#183;00"
string(9) "0&#183;00"

 number_format tests.....multiple character thousand separator
string(15) "1&thinsp;234.57"
string(16) "-1&thinsp;234.57"
string(27) "12&thinsp;346&thinsp;578.00"
string(28) "-12&thinsp;345&thinsp;678.90"
string(28) "305&thinsp;450&thinsp;479.00"
string(28) "402&thinsp;653&thinsp;183.00"
string(28) "123&thinsp;456&thinsp;789.00"
string(6) "123.46"
string(6) "123.46"
string(4) "0.00"
string(4) "1.00"
string(4) "0.00"

 number_format tests.....multiple character decimal and thousep
string(20) "1&thinsp;234&#183;57"
string(21) "-1&thinsp;234&#183;57"
string(32) "12&thinsp;346&thinsp;578&#183;00"
string(33) "-12&thinsp;345&thinsp;678&#183;90"
string(33) "305&thinsp;450&thinsp;479&#183;00"
string(33) "402&thinsp;653&thinsp;183&#183;00"
string(33) "123&thinsp;456&thinsp;789&#183;00"
string(11) "123&#183;46"
string(11) "123&#183;46"
string(9) "0&#183;00"
string(9) "1&#183;00"
string(9) "0&#183;00"

Youez - 2016 - github.com/yon3zu
LinuXploit