Browse Source

fixed Array.join() and Array.toString()

Franco Ponticelli 14 years ago
parent
commit
a5fd686ca2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/php/Boot.hx

+ 2 - 2
std/php/Boot.hx

@@ -58,7 +58,7 @@ class _hx_array implements ArrayAccess, IteratorAggregate {
 	}
 	}
 
 
 	function join($sep) {
 	function join($sep) {
-		return implode($this->»a, $sep);
+		return implode($sep, $this->»a);
 	}
 	}
 
 
 	function pop() {
 	function pop() {
@@ -121,7 +121,7 @@ class _hx_array implements ArrayAccess, IteratorAggregate {
 	}
 	}
 
 
 	function toString() {
 	function toString() {
-		return '['.implode($this->»a, ', ').']';
+		return '['.implode(', ', $this->»a).']';
 	}
 	}
 
 
 	function __toString() {
 	function __toString() {