Every line of 'integer array in python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
530 def test_php_int_key_array_vals_in_python(self, php_space): 531 output = self.run(''' 532 $src = "def f(ary, idx): return ary[idx]"; 533 $f = compile_py_func($src); 534 $in = array("an", "intkeyed", "array"); 535 536 echo($f($in, 0)); 537 echo($f($in, 1)); 538 echo($f($in, 2)); 539 ''') 540 assert php_space.str_w(output[0]) == "an" 541 assert php_space.str_w(output[1]) == "intkeyed" 542 assert php_space.str_w(output[2]) == "array"