summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>