fork(1) download
  1. <?php
  2. $arraya = explode(', ' , 'value1, value2, value3');
  3. $arrayb = array( 'value3', 'value1', 'value2' );
  4. print_r( array_diff( $arraya , $arrayb ) );
  5.  
  6. $arraya = explode(', ' , 'value1, value2, value3, value999');
  7. $arrayb = array( 'value3', 'value1', 'value2' );
  8. print_r( array_diff( $arraya , $arrayb ) );
  9. // your code goes here
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Array
(
)
Array
(
    [3] => value999
)