summaryrefslogtreecommitdiff
path: root/documentation/bubblesort.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-07 15:30:21 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-07 15:30:21 +0100
commita4a5f7766e906f35a9c46c4af719c24a10c4ef99 (patch)
tree4a3a9881cf8086ef0df9e95d5784cc5e108ecb99 /documentation/bubblesort.html
parent28e09660d30fc17969916673fdc8475ceeedbeb2 (diff)
update to bubblesort example
Diffstat (limited to 'documentation/bubblesort.html')
-rw-r--r--documentation/bubblesort.html5
1 files changed, 3 insertions, 2 deletions
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&lt;$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");
?&gt;
</code></pre>
+</p>