-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
62 lines (48 loc) · 1.96 KB
/
test.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
include_once('self.php');
// $self->fromString("a b c 가 나 다 ")->toCharArray()->out();
// $self->fromNumber(1234.56)->numberFormat()->out();
// $self->fromString("first=value&arr[]=foo+bar&arr[]=baz")->urlToArray()->out();
// $self->fromNumber(17999)->numberFormat()->out();
// $self->fromString("asdf")->sha1()->out();
// $self->fromString("asdfg")->sha1()->out();
//$self->fromString('this is %d monkeys in the %s')->format(12,"zoo")->out();
// $self->fromString("SN/January 01 2000")->formatScan("SN/%s %d %d")->out();
//$self->fromString("aBCdAa")->replace('a',1)->out();
//$self->fromString("aBCdAa")->replace('a',1,false)->out();
// $self->from("aBCdAa")->replace('a',1,false)->out();
// $self->from("aBCdAa")->padLeft(30,"zzz")->out();
// $self->from("=-")->repeat(10)->out();
// var_dump($self->from("asdf")->equalsValue("asdf"));
// var_dump($self->from("asdf")->equalsValue("asdfg"));
// var_dump($self->from("asdf")->equalsValueAndType("asdf"));
// var_dump($self->from("asdf")->equalsValueAndType($self->from("asdf")));
// $self->from('<p>테스트 문단.</p><!-- 주석 --> <a href="#fragment">다른 텍스트</a>')->htmlStrip()->out();
//$self->from('<p>테스트 문단.</p><!-- 주석 --> <a href="#fragment">다른 텍스트</a>')->htmlStrip("<p>")->out();
// $self->from("a나bc가 d")->reverse()->out();
// $arr = array(1,2,3,4,5);
/*
function odd($var)
{
return ($var & 1);
}
function even($var) {
return (!($var & 1));
}
$array1 = array("a"=>1, "b"=>2, "c"=>3, "d"=>4, "e"=>5);
$array2 = array(6, 7, 8, 9, 10, 11, 12);
print_r(array_filter($array1, "odd"));
$self->from($array1)->filter("odd")->out();
$self->from($array1)->filter(function($k,$v){
return ($v & 1);
})->out();
// echo "짝수:\n";
// print_r(array_filter($array2, "even"));
*/
//var_dump($self->mysql());
// var_dump($self->mysql()->select('reportwrite'));
//var_dump($self->mysql()->getColumnList('wp1_posts'));
//var_dump($self->mysql());
$a = array(1,2,3,4);
var_dump(isset($a[5]));
?>