Skip to content

Commit 2ae1bed

Browse files
committed
Update site
1 parent ee53c9c commit 2ae1bed

File tree

340 files changed

+5045
-2262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+5045
-2262
lines changed

_octopress/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ task :build do
164164
page_fnc.puts "the closest match to this hashtable-like data structure. "
165165
page_fnc.puts ""
166166
page_fnc.puts "Please also note that php.js offers community built functions and goes by the "
167-
page_fnc.puts "[McDonald\’s Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put online "
167+
page_fnc.puts "[McDonald's Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put online "
168168
page_fnc.puts "functions that are far from perfect, in the hopes to spark better contributions. "
169169
page_fnc.puts "Do you have one? Then please just: "
170170
page_fnc.puts ""

_octopress/source/_includes/custom/array.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<!-- Generated by Rakefile:build -->
2-
- [array](/functions/array)
32
- [array_change_key_case](/functions/array_change_key_case)
43
- [array_chunk](/functions/array_chunk)
54
- [array_combine](/functions/array_combine)

_octopress/source/_includes/custom/asides/category_list.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,20 @@ <h1>Categories</h1>
66

77
<li><a href="/categories/bc">bc</a></li>
88

9-
<li><a href="/categories/classkit">classkit</a></li>
10-
11-
<li><a href="/categories/classobj">classobj</a></li>
12-
139
<li><a href="/categories/ctype">ctype</a></li>
1410

1511
<li><a href="/categories/datetime">datetime</a></li>
1612

17-
<li><a href="/categories/errorfunc">errorfunc</a></li>
18-
1913
<li><a href="/categories/exec">exec</a></li>
2014

2115
<li><a href="/categories/filesystem">filesystem</a></li>
2216

2317
<li><a href="/categories/funchand">funchand</a></li>
2418

25-
<li><a href="/categories/i18n">i18n</a></li>
26-
2719
<li><a href="/categories/info">info</a></li>
2820

2921
<li><a href="/categories/json">json</a></li>
3022

31-
<li><a href="/categories/language">language</a></li>
32-
33-
<li><a href="/categories/mail">mail</a></li>
34-
3523
<li><a href="/categories/math">math</a></li>
3624

3725
<li><a href="/categories/misc">misc</a></li>
@@ -40,16 +28,8 @@ <h1>Categories</h1>
4028

4129
<li><a href="/categories/network">network</a></li>
4230

43-
<li><a href="/categories/objaggregation">objaggregation</a></li>
44-
45-
<li><a href="/categories/outcontrol">outcontrol</a></li>
46-
4731
<li><a href="/categories/pcre">pcre</a></li>
4832

49-
<li><a href="/categories/runkit">runkit</a></li>
50-
51-
<li><a href="/categories/stream">stream</a></li>
52-
5333
<li><a href="/categories/strings">strings</a></li>
5434

5535
<li><a href="/categories/url">url</a></li>

_octopress/source/_includes/custom/community.html

Lines changed: 1217 additions & 1031 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
<!-- Generated by Rakefile:build -->
22
- [checkdate](/functions/checkdate)
33
- [date](/functions/date)
4-
- [date_default_timezone_get](/functions/date_default_timezone_get)
5-
- [date_default_timezone_set](/functions/date_default_timezone_set)
64
- [date_parse](/functions/date_parse)
75
- [getdate](/functions/getdate)
86
- [gettimeofday](/functions/gettimeofday)
97
- [gmdate](/functions/gmdate)
108
- [gmmktime](/functions/gmmktime)
119
- [gmstrftime](/functions/gmstrftime)
1210
- [idate](/functions/idate)
13-
- [localtime](/functions/localtime)
1411
- [microtime](/functions/microtime)
1512
- [mktime](/functions/mktime)
1613
- [strftime](/functions/strftime)
1714
- [strptime](/functions/strptime)
1815
- [strtotime](/functions/strtotime)
1916
- [time](/functions/time)
20-
- [timezone_abbreviations_list](/functions/timezone_abbreviations_list)
21-
- [timezone_identifiers_list](/functions/timezone_identifiers_list)
Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
<!-- Generated by Rakefile:build -->
22
- [basename](/functions/basename)
33
- [dirname](/functions/dirname)
4-
- [fclose](/functions/fclose)
5-
- [feof](/functions/feof)
6-
- [fgetc](/functions/fgetc)
7-
- [fgetcsv](/functions/fgetcsv)
8-
- [fgets](/functions/fgets)
9-
- [fgetss](/functions/fgetss)
10-
- [file](/functions/file)
11-
- [file_exists](/functions/file_exists)
12-
- [file_get_contents](/functions/file_get_contents)
13-
- [filemtime](/functions/filemtime)
14-
- [filesize](/functions/filesize)
15-
- [fopen](/functions/fopen)
16-
- [fpassthru](/functions/fpassthru)
17-
- [fread](/functions/fread)
18-
- [fscanf](/functions/fscanf)
19-
- [fseek](/functions/fseek)
20-
- [ftell](/functions/ftell)
214
- [pathinfo](/functions/pathinfo)
22-
- [pclose](/functions/pclose)
23-
- [popen](/functions/popen)
24-
- [readfile](/functions/readfile)
255
- [realpath](/functions/realpath)
26-
- [rewind](/functions/rewind)

_octopress/source/_includes/custom/funchand.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
- [call_user_func](/functions/call_user_func)
33
- [call_user_func_array](/functions/call_user_func_array)
44
- [create_function](/functions/create_function)
5-
- [forward_static_call](/functions/forward_static_call)
6-
- [forward_static_call_array](/functions/forward_static_call_array)
7-
- [func_get_arg](/functions/func_get_arg)
8-
- [func_get_args](/functions/func_get_args)
9-
- [func_num_args](/functions/func_num_args)
105
- [function_exists](/functions/function_exists)
116
- [get_defined_functions](/functions/get_defined_functions)
127
- [register_shutdown_function](/functions/register_shutdown_function)
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
<!-- Generated by Rakefile:build -->
22
- [assert](/functions/assert)
33
- [assert_options](/functions/assert_options)
4-
- [get_cfg_var](/functions/get_cfg_var)
5-
- [get_defined_constants](/functions/get_defined_constants)
6-
- [get_extension_funcs](/functions/get_extension_funcs)
7-
- [get_include_path](/functions/get_include_path)
8-
- [get_included_files](/functions/get_included_files)
9-
- [get_required_files](/functions/get_required_files)
104
- [getenv](/functions/getenv)
115
- [getlastmod](/functions/getlastmod)
12-
- [ini_alter](/functions/ini_alter)
13-
- [ini_get](/functions/ini_get)
14-
- [ini_get_all](/functions/ini_get_all)
15-
- [ini_restore](/functions/ini_restore)
16-
- [ini_set](/functions/ini_set)
17-
- [php_ini_loaded_file](/functions/php_ini_loaded_file)
18-
- [php_ini_scanned_files](/functions/php_ini_scanned_files)
19-
- [phpversion](/functions/phpversion)
20-
- [putenv](/functions/putenv)
21-
- [restore_include_path](/functions/restore_include_path)
22-
- [set_include_path](/functions/set_include_path)
236
- [set_time_limit](/functions/set_time_limit)
247
- [version_compare](/functions/version_compare)
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<!-- Generated by Rakefile:build -->
2-
- [constant](/functions/constant)
3-
- [define](/functions/define)
4-
- [defined](/functions/defined)
52
- [pack](/functions/pack)
6-
- [php_strip_whitespace](/functions/php_strip_whitespace)
73
- [time_sleep_until](/functions/time_sleep_until)
84
- [uniqid](/functions/uniqid)

_octopress/source/_includes/custom/strings.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- [convert_uuencode](/functions/convert_uuencode)
1010
- [count_chars](/functions/count_chars)
1111
- [crc32](/functions/crc32)
12-
- [echo](/functions/echo)
1312
- [explode](/functions/explode)
1413
- [get_html_translation_table](/functions/get_html_translation_table)
1514
- [html_entity_decode](/functions/html_entity_decode)

_octopress/source/_includes/custom/var.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
- [doubleval](/functions/doubleval)
33
- [empty](/functions/empty)
44
- [floatval](/functions/floatval)
5-
- [get_defined_vars](/functions/get_defined_vars)
6-
- [get_resource_type](/functions/get_resource_type)
75
- [gettype](/functions/gettype)
8-
- [import_request_variables](/functions/import_request_variables)
96
- [intval](/functions/intval)
107
- [is_array](/functions/is_array)
118
- [is_binary](/functions/is_binary)
@@ -26,7 +23,6 @@
2623
- [is_string](/functions/is_string)
2724
- [is_unicode](/functions/is_unicode)
2825
- [isset](/functions/isset)
29-
- [print_r](/functions/print_r)
3026
- [serialize](/functions/serialize)
3127
- [settype](/functions/settype)
3228
- [strval](/functions/strval)

_octopress/source/categories/array/index.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ footer: true
77
---
88
<!-- Generated by Rakefile:build -->
99

10-
- [array](/functions/array)
1110
- [array_change_key_case](/functions/array_change_key_case)
1211
- [array_chunk](/functions/array_chunk)
1312
- [array_combine](/functions/array_combine)

_octopress/source/categories/datetime/index.markdown

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,16 @@ footer: true
99

1010
- [checkdate](/functions/checkdate)
1111
- [date](/functions/date)
12-
- [date_default_timezone_get](/functions/date_default_timezone_get)
13-
- [date_default_timezone_set](/functions/date_default_timezone_set)
1412
- [date_parse](/functions/date_parse)
1513
- [getdate](/functions/getdate)
1614
- [gettimeofday](/functions/gettimeofday)
1715
- [gmdate](/functions/gmdate)
1816
- [gmmktime](/functions/gmmktime)
1917
- [gmstrftime](/functions/gmstrftime)
2018
- [idate](/functions/idate)
21-
- [localtime](/functions/localtime)
2219
- [microtime](/functions/microtime)
2320
- [mktime](/functions/mktime)
2421
- [strftime](/functions/strftime)
2522
- [strptime](/functions/strptime)
2623
- [strtotime](/functions/strtotime)
2724
- [time](/functions/time)
28-
- [timezone_abbreviations_list](/functions/timezone_abbreviations_list)
29-
- [timezone_identifiers_list](/functions/timezone_identifiers_list)

_octopress/source/categories/filesystem/index.markdown

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,5 @@ footer: true
99

1010
- [basename](/functions/basename)
1111
- [dirname](/functions/dirname)
12-
- [fclose](/functions/fclose)
13-
- [feof](/functions/feof)
14-
- [fgetc](/functions/fgetc)
15-
- [fgetcsv](/functions/fgetcsv)
16-
- [fgets](/functions/fgets)
17-
- [fgetss](/functions/fgetss)
18-
- [file](/functions/file)
19-
- [file_exists](/functions/file_exists)
20-
- [file_get_contents](/functions/file_get_contents)
21-
- [filemtime](/functions/filemtime)
22-
- [filesize](/functions/filesize)
23-
- [fopen](/functions/fopen)
24-
- [fpassthru](/functions/fpassthru)
25-
- [fread](/functions/fread)
26-
- [fscanf](/functions/fscanf)
27-
- [fseek](/functions/fseek)
28-
- [ftell](/functions/ftell)
2912
- [pathinfo](/functions/pathinfo)
30-
- [pclose](/functions/pclose)
31-
- [popen](/functions/popen)
32-
- [readfile](/functions/readfile)
3313
- [realpath](/functions/realpath)
34-
- [rewind](/functions/rewind)

_octopress/source/categories/funchand/index.markdown

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ footer: true
1010
- [call_user_func](/functions/call_user_func)
1111
- [call_user_func_array](/functions/call_user_func_array)
1212
- [create_function](/functions/create_function)
13-
- [forward_static_call](/functions/forward_static_call)
14-
- [forward_static_call_array](/functions/forward_static_call_array)
15-
- [func_get_arg](/functions/func_get_arg)
16-
- [func_get_args](/functions/func_get_args)
17-
- [func_num_args](/functions/func_num_args)
1813
- [function_exists](/functions/function_exists)
1914
- [get_defined_functions](/functions/get_defined_functions)
2015
- [register_shutdown_function](/functions/register_shutdown_function)

_octopress/source/categories/info/index.markdown

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,7 @@ footer: true
99

1010
- [assert](/functions/assert)
1111
- [assert_options](/functions/assert_options)
12-
- [get_cfg_var](/functions/get_cfg_var)
13-
- [get_defined_constants](/functions/get_defined_constants)
14-
- [get_extension_funcs](/functions/get_extension_funcs)
15-
- [get_include_path](/functions/get_include_path)
16-
- [get_included_files](/functions/get_included_files)
17-
- [get_required_files](/functions/get_required_files)
1812
- [getenv](/functions/getenv)
1913
- [getlastmod](/functions/getlastmod)
20-
- [ini_alter](/functions/ini_alter)
21-
- [ini_get](/functions/ini_get)
22-
- [ini_get_all](/functions/ini_get_all)
23-
- [ini_restore](/functions/ini_restore)
24-
- [ini_set](/functions/ini_set)
25-
- [php_ini_loaded_file](/functions/php_ini_loaded_file)
26-
- [php_ini_scanned_files](/functions/php_ini_scanned_files)
27-
- [phpversion](/functions/phpversion)
28-
- [putenv](/functions/putenv)
29-
- [restore_include_path](/functions/restore_include_path)
30-
- [set_include_path](/functions/set_include_path)
3114
- [set_time_limit](/functions/set_time_limit)
3215
- [version_compare](/functions/version_compare)

_octopress/source/categories/misc/index.markdown

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ footer: true
77
---
88
<!-- Generated by Rakefile:build -->
99

10-
- [constant](/functions/constant)
11-
- [define](/functions/define)
12-
- [defined](/functions/defined)
1310
- [pack](/functions/pack)
14-
- [php_strip_whitespace](/functions/php_strip_whitespace)
1511
- [time_sleep_until](/functions/time_sleep_until)
1612
- [uniqid](/functions/uniqid)

_octopress/source/categories/strings/index.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ footer: true
1717
- [convert_uuencode](/functions/convert_uuencode)
1818
- [count_chars](/functions/count_chars)
1919
- [crc32](/functions/crc32)
20-
- [echo](/functions/echo)
2120
- [explode](/functions/explode)
2221
- [get_html_translation_table](/functions/get_html_translation_table)
2322
- [html_entity_decode](/functions/html_entity_decode)

_octopress/source/categories/var/index.markdown

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ footer: true
1010
- [doubleval](/functions/doubleval)
1111
- [empty](/functions/empty)
1212
- [floatval](/functions/floatval)
13-
- [get_defined_vars](/functions/get_defined_vars)
14-
- [get_resource_type](/functions/get_resource_type)
1513
- [gettype](/functions/gettype)
16-
- [import_request_variables](/functions/import_request_variables)
1714
- [intval](/functions/intval)
1815
- [is_array](/functions/is_array)
1916
- [is_binary](/functions/is_binary)
@@ -34,7 +31,6 @@ footer: true
3431
- [is_string](/functions/is_string)
3532
- [is_unicode](/functions/is_unicode)
3633
- [isset](/functions/isset)
37-
- [print_r](/functions/print_r)
3834
- [serialize](/functions/serialize)
3935
- [settype](/functions/settype)
4036
- [strval](/functions/strval)

_octopress/source/functions/abs/index.markdown

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A JavaScript equivalent of PHP's abs
1616

1717
{% codeblock math/abs.js lang:js https://raw.github.com/kvz/phpjs/master/functions/math/abs.js raw on github %}
1818
function abs (mixed_number) {
19-
// http://kevin.vanzonneveld.net
19+
// From: http://phpjs.org/functions
2020
// + original by: Waldo Malqui Silva
2121
// + improved by: Karol Kowalski
2222
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
@@ -33,8 +33,17 @@ function abs (mixed_number) {
3333
}
3434
{% endcodeblock %}
3535

36-
- [view on github](https://github.com/kvz/phpjs/blob/master/functions/math/abs.js)
37-
- [edit on github](https://github.com/kvz/phpjs/edit/master/functions/math/abs.js)
36+
- [Raw function on GitHub](https://github.com/kvz/phpjs/blob/master/functions/math/abs.js)
37+
38+
Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are
39+
the closest match to this hashtable-like data structure.
40+
41+
Please also note that php.js offers community built functions and goes by the
42+
[McDonald's Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put online
43+
functions that are far from perfect, in the hopes to spark better contributions.
44+
Do you have one? Then please just:
45+
46+
- [Edit on GitHub](https://github.com/kvz/phpjs/edit/master/functions/math/abs.js)
3847

3948
### Example 1
4049
This code

_octopress/source/functions/acos/index.markdown

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,25 @@ A JavaScript equivalent of PHP's acos
1616

1717
{% codeblock math/acos.js lang:js https://raw.github.com/kvz/phpjs/master/functions/math/acos.js raw on github %}
1818
function acos (arg) {
19-
// http://kevin.vanzonneveld.net
19+
// From: http://phpjs.org/functions
2020
// + original by: Onno Marsman
2121
// * example 1: acos(0.3);
2222
// * returns 1: 1.2661036727794992
2323
return Math.acos(arg);
2424
}
2525
{% endcodeblock %}
2626

27-
- [view on github](https://github.com/kvz/phpjs/blob/master/functions/math/acos.js)
28-
- [edit on github](https://github.com/kvz/phpjs/edit/master/functions/math/acos.js)
27+
- [Raw function on GitHub](https://github.com/kvz/phpjs/blob/master/functions/math/acos.js)
28+
29+
Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are
30+
the closest match to this hashtable-like data structure.
31+
32+
Please also note that php.js offers community built functions and goes by the
33+
[McDonald's Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put online
34+
functions that are far from perfect, in the hopes to spark better contributions.
35+
Do you have one? Then please just:
36+
37+
- [Edit on GitHub](https://github.com/kvz/phpjs/edit/master/functions/math/acos.js)
2938

3039
### Example 1
3140
This code

0 commit comments

Comments
 (0)