Sfoglia il codice sorgente

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

Franco Ponticelli 14 anni fa
parent
commit
a5fd686ca2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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) {
-		return implode($this->»a, $sep);
+		return implode($sep, $this->»a);
 	}
 
 	function pop() {
@@ -121,7 +121,7 @@ class _hx_array implements ArrayAccess, IteratorAggregate {
 	}
 
 	function toString() {
-		return '['.implode($this->»a, ', ').']';
+		return '['.implode(', ', $this->»a).']';
 	}
 
 	function __toString() {