CopyPastor

Detecting plagiarism made easy.

Score: 0.8500892472093122; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-11-04
by Blueblazer172

Original Post

Original - Posted on 2016-11-04
by Blinkydamo



            
Present in both answers; Present only in the new answer; Present only in the old answer;

$a = array (0 => 1, 1 => 2, 2 => 3); $b = array (1 => 2, 2 => 3, 0 => 1); var_dump($a == $b); // bool(true) var_dump($a === $b); // bool(false)
`==` compares the variable from `$a with $b`<br> `===` compares the same datatypes from `$a with $b`
$a = array (0 => 1, 1 => 2, 2 => 3); $b = array (1 => 2, 2 => 3, 0 => 1); $c = array (0 => 1, 1 => 2, 2 => 3); var_dump( $a === $b ); // False var_dump( $a === $c ); // True
The arrays must match, same order.

        
Present in both answers; Present only in the new answer; Present only in the old answer;