- var_export: documentation ( source)
- stripos: documentation ( source)
- json_encode: documentation ( source)
<?php
$array = ['they "did" it', "some", "other", "elements"];
var_export(
[
'they "did" it' => stripos(json_encode($array), 'they "did" it') !== false, // should be true but isn't
'they \"did\" it' => stripos(json_encode($array), 'they \"did\" it') !== false // should be false but isn't
]
);