How to assign an element to a PHP associative array?
For example, I attempt this but not working.
$testSCSI = array('test' => <input type="checkbox"> Test Results</input>);
echo json_encode($testSCSI);
When reading the json from my jquery code, it only gives me value of “Test Results” and not the checkbox.
Is this what you mean? Did you forget the quotes?