- var_dump: documentation ( source)
- json_encode: documentation ( source)
<?php
$s = array (
'$and' =>
array (
0 =>
array (
'external_identity' =>
array (
'$elemMatch' =>
array (
'type' => 'bpo',
'value' =>
array (
'$in' =>
array (
0 => '34',
1 => '17753',
2 => '7828',
3 => '35060',
4 => '21',
),
),
),
),
),
),
);
var_dump(json_encode($s));