Skip to content

Commit 14de69a

Browse files
committed
Credit phpjs.org and not my old blog
1 parent a4e7d74 commit 14de69a

File tree

305 files changed

+305
-305
lines changed

Some content is hidden

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

305 files changed

+305
-305
lines changed

functions/_phpjs_shared/_phpjs_shared_bc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function _phpjs_shared_bc () {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// * example 1: _phpjs_shared_bc();

functions/array/array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array () {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: d3x
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// * example 1: array('Kevin', 'van', 'Zonneveld');

functions/array/array_change_key_case.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_change_key_case (array, cs) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Ates Goral (http://magnetiq.com)
44
// + improved by: marrtins
55
// + improved by: Brett Zamir (http://brett-zamir.me)

functions/array/array_chunk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_chunk (input, size, preserve_keys) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// % note 1: Important note: Per the ECMAScript specification, objects may not always iterate in a predictable order

functions/array/array_combine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_combine (keys, values) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// * example 1: array_combine([0,1,2], ['kevin','van','zonneveld']);

functions/array/array_count_values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_count_values (array) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Ates Goral (http://magnetiq.com)
44
// + namespaced by: Michael White (http://getsprink.com)
55
// + input by: sankai

functions/array/array_diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_diff (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Sanjoy Roy
55
// + revised by: Brett Zamir (http://brett-zamir.me)

functions/array/array_diff_assoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_diff_assoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + bugfixed by: 0m3r
55
// + revised by: Brett Zamir (http://brett-zamir.me)

functions/array/array_diff_key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_diff_key (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Ates Goral (http://magnetiq.com)
44
// + revised by: Brett Zamir (http://brett-zamir.me)
55
// + input by: Everlasto

functions/array/array_diff_uassoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_diff_uassoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// * example 1: $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}

functions/array/array_diff_ukey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_diff_ukey (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {blue: 1, red: 2, green: 3, purple: 4}
55
// * example 1: $array2 = {green: 5, blue: 6, yellow: 7, cyan: 8}

functions/array/array_fill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_fill (start_index, num, mixed_val) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Waldo Malqui Silva
55
// * example 1: array_fill(5, 6, 'banana');

functions/array/array_fill_keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_fill_keys (keys, value) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + bugfixed by: Brett Zamir (http://brett-zamir.me)
55
// * example 1: keys = {'a': 'foo', 2: 5, 3: 10, 4: 'bar'}

functions/array/array_filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_filter (arr, func) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + input by: max4ever
55
// + improved by: Brett Zamir (http://brett-zamir.me)

functions/array/array_flip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_flip (trans) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Pier Paolo Ramon (http://www.mastersoup.com/)
55
// + improved by: Brett Zamir (http://brett-zamir.me)

functions/array/array_intersect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_intersect (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// % note 1: These only output associative arrays (would need to be
55
// % note 1: all numeric and counting from zero to be numeric)

functions/array/array_intersect_assoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_intersect_assoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// % note 1: These only output associative arrays (would need to be
55
// % note 1: all numeric and counting from zero to be numeric)

functions/array/array_intersect_key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_intersect_key (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// % note 1: These only output associative arrays (would need to be
55
// % note 1: all numeric and counting from zero to be numeric)

functions/array/array_intersect_uassoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_intersect_uassoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// * example 1: $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}

functions/array/array_intersect_ukey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_intersect_ukey (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {blue: 1, red: 2, green: 3, purple: 4}
55
// * example 1: $array2 = {green: 5, blue: 6, yellow: 7, cyan: 8}

functions/array/array_key_exists.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_key_exists (key, search) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Felix Geisendoerfer (http://www.debuggable.com/felix)
55
// * example 1: array_key_exists('kevin', {'kevin': 'van Zonneveld'});

functions/array/array_keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_keys (input, search_value, argStrict) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + input by: Brett Zamir (http://brett-zamir.me)
55
// + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)

functions/array/array_map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_map (callback) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Andrea Giammarchi (http://webreflection.blogspot.com)
44
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
55
// + input by: thekid

functions/array/array_merge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_merge () {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + bugfixed by: Nate
55
// + input by: josh

functions/array/array_merge_recursive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_merge_recursive (arr1, arr2) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Subhasis Deb
44
// + input by: Brett Zamir (http://brett-zamir.me)
55
// + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)

functions/array/array_pad.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_pad (input, pad_size, pad_value) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Waldo Malqui Silva
44
// * example 1: array_pad([ 7, 8, 9 ], 2, 'a');
55
// * returns 1: [ 7, 8, 9]

functions/array/array_pop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_pop (inputArr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
55
// + input by: Brett Zamir (http://brett-zamir.me)

functions/array/array_product.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_product (input) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Waldo Malqui Silva
44
// * example 1: array_product([ 2, 4, 6, 8 ]);
55
// * returns 1: 384

functions/array/array_push.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_push (inputArr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// % note 1: Note also that IE retains information about property position even

functions/array/array_rand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_rand (input, num_req) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Waldo Malqui Silva
44
// * example 1: array_rand( ['Kevin'], 1 );
55
// * returns 1: 0

functions/array/array_reduce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_reduce (a_input, callback) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Alfonso Jimenez (http://www.alfonsojimenez.com)
44
// % note 1: Takes a function as an argument, not a function's name
55
// * example 1: array_reduce([1, 2, 3, 4, 5], function (v, w){v += w;return v;});

functions/array/array_reverse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_reverse (array, preserve_keys) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Karol Kowalski
55
// * example 1: array_reverse( [ 'php', '4.0', ['green', 'red'] ], true);

functions/array/array_search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_search (needle, haystack, argStrict) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + input by: Brett Zamir (http://brett-zamir.me)
55
// + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)

functions/array/array_shift.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_shift (inputArr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Martijn Wieringa
55
// % note 1: Currently does not handle objects

functions/array/array_slice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_slice (arr, offst, lgth, preserve_keys) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// - depends on: is_int
55
// + input by: Brett Zamir (http://brett-zamir.me)

functions/array/array_splice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_splice (arr, offst, lgth, replacement) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + input by: Theriault
55
// % note 1: Order does get shifted in associative array input with numeric indices,

functions/array/array_sum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_sum (array) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + bugfixed by: Nate
55
// + bugfixed by: Gilbert

functions/array/array_udiff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_udiff (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// * example 1: $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}

functions/array/array_udiff_assoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_udiff_assoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: array_udiff_assoc({0: 'kevin', 1: 'van', 2: 'Zonneveld'}, {0: 'Kevin', 4: 'van', 5: 'Zonneveld'}, function (f_string1, f_string2){var string1 = (f_string1+'').toLowerCase(); var string2 = (f_string2+'').toLowerCase(); if (string1 > string2) return 1; if (string1 == string2) return 0; return -1;});
55
// * returns 1: {1: 'van', 2: 'Zonneveld'}

functions/array/array_udiff_uassoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_udiff_uassoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// * example 1: $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}

functions/array/array_uintersect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_uintersect (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + bugfixed by: Demosthenes Koptsis
55
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}

functions/array/array_uintersect_assoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_uintersect_assoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// * example 1: $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}

functions/array/array_uintersect_uassoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_uintersect_uassoc (arr1) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// * example 1: $array1 = {a: 'green', b: 'brown', c: 'blue', 0: 'red'}
55
// * example 1: $array2 = {a: 'GREEN', B: 'brown', 0: 'yellow', 1: 'red'}

functions/array/array_unique.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_unique (inputArr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)
44
// + input by: duncan
55
// + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)

functions/array/array_unshift.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_unshift (array) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Martijn Wieringa
55
// + improved by: jmweb

functions/array/array_values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_values (input) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// * example 1: array_values( {firstname: 'Kevin', surname: 'van Zonneveld'} );

functions/array/array_walk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_walk (array, funcname, userdata) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Johnny Mast (http://www.phpvrouwen.nl)
44
// + bugfixed by: David
55
// + improved by: Brett Zamir (http://brett-zamir.me)

functions/array/array_walk_recursive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function array_walk_recursive (array, funcname, userdata) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Johnny Mast (http://www.phpvrouwen.nl)
44
// * example 1: array_walk_recursive ({'a': 'b', 'c': {'d': 'e'}}, 'void', 'userdata');
55
// * returns 1: true

functions/array/arsort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function arsort (inputArr, sort_flags) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// + improved by: Theriault

functions/array/asort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function asort (inputArr, sort_flags) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + improved by: Brett Zamir (http://brett-zamir.me)
55
// + input by: paulo kuong

functions/array/compact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function compact () {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Waldo Malqui Silva
44
// + tweaked by: Jack
55
// + input by: Brett Zamir (http://brett-zamir.me)

functions/array/count.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function count (mixed_var, mode) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + input by: Waldo Malqui Silva
55
// + bugfixed by: Soren Hansen

functions/array/current.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function current (arr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// % note 1: Uses global: php_js to store the array pointer
55
// * example 1: transport = ['foot', 'bike', 'car', 'plane'];

functions/array/each.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function each (arr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Ates Goral (http://magnetiq.com)
44
// + revised by: Brett Zamir (http://brett-zamir.me)
55
// % note 1: Uses global: php_js to store the array pointer

functions/array/end.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function end (arr) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + bugfixed by: Legaev Andrey
55
// + revised by: J A R

functions/array/extract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function extract (arr, type, prefix) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// % note 1: Only works by extracting into global context (whether called in the global scope or
55
// % note 1: within a function); also, the EXTR_REFS flag I believe can't be made to work

functions/array/in_array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function in_array (needle, haystack, argStrict) {
2-
// http://kevin.vanzonneveld.net
2+
// From: http://phpjs.org/functions
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + improved by: vlado houba
55
// + input by: Billy

0 commit comments

Comments
 (0)