Browse Source

- php: added php.Lib.associativeArrayOfHash()

Franco Ponticelli 16 years ago
parent
commit
6a4ead0e56
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/php/Lib.hx

+ 4 - 0
std/php/Lib.hx

@@ -61,6 +61,10 @@ class Lib {
 		untyped __php__("reset($arr); while(list($k, $v) = each($arr)) $h->set($k, $v)");
 		untyped __php__("reset($arr); while(list($k, $v) = each($arr)) $h->set($k, $v)");
 		return h;
 		return h;
 	}
 	}
+	
+	public static function associativeArrayOfHash(hash : Hash<Dynamic>) : NativeArray {
+		return untyped hash.h;
+	}
 
 
 	/**
 	/**
 		For neko compatibility only.
 		For neko compatibility only.