forked from kyoda/php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.php
More file actions
37 lines (27 loc) · 880 Bytes
/
test2.php
File metadata and controls
37 lines (27 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
echo round(100*1.1) ."\n";
echo round(105*1.1) ."\n";
echo round(100*1.08) ."\n";
echo ((int)100.4)."\n";
echo ((int)100.9)."\n";
$a = 100.9876543210987654321098765432109;
$b = 100987654321098765432109876543210987654321;
echo strlen($a) . ": " . $a ."\n";
echo strlen($b) . ": " . $b ."\n";
echo strlen((int)$b) . ": " . $b ."\n";
echo ((float)$a)."\n";
echo ((int)$a)."\n";
echo ((double)$a)."\n";
echo base_convert(27135346, 8, 10) ."\n";
/*
$a = "あaいiうuえお";
print mb_detect_encoding($a)."\n";
var_dump(preg_split("//u", $a, -1, PREG_SPLIT_NO_EMPTY));
*/
print preg_replace('/(\/\/|#).*/', '', 'aiueo #//#/// あいうえお //aaa') ."\n";
//print preg_replace('/(\/\/|#).*/', '\1', 'aiueo #//#/// あいうえお //aaa') ."\n";
$dir = ".";
include_once('locatefile.class.php');
$a = new LocateFile();
$list = $a->getFileList($dir);
//var_dump($list);