From a4a5f7766e906f35a9c46c4af719c24a10c4ef99 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 7 Mar 2014 15:30:21 +0100 Subject: update to bubblesort example --- documentation/bubblesort.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'documentation') diff --git a/documentation/bubblesort.html b/documentation/bubblesort.html index c0433be..824057b 100644 --- a/documentation/bubblesort.html +++ b/documentation/bubblesort.html @@ -16,7 +16,7 @@ * Bubblesort function in PHP * * This function takes an unsorted array as input, sorts it, and returns - * the output. It only uses normal PHP operation, and does not rely on + * the output. It only uses normal PHP operations, and does not rely on * any builtin PHP functions or on functions from extensions * * @param array An unsorted array of integers @@ -147,7 +147,7 @@ extern "C" { // fill an array with random numbers $count = 10000; $x = array(); -for ($i=0; $i<$count; $i++) $x[] = rand(0, 1000000); +for ($i=0; $i<$count; $i++) $x[] = rand(0, 1000000); // run the native and scripted bubblesort functions $start = microtime(true); @@ -162,3 +162,4 @@ echo("Scripted: ".($scriped - $native)." seconds\n"); ?> +

-- cgit v1.2.3