Search found 1 match
- Wed Feb 10, 2010 6:17 am
- Forum: PHP - Code
- Topic: force json_encode not to put quotes
- Replies: 1
- Views: 210
force json_encode not to put quotes
Hello. I need to force json_encode NOT to put any quotes around certain values. Example: $ar = array( 'data' => '$(this).val()' ); json_encode returns: {"data":"$(this).val()"} and $(this).val() doesn't get executed by javascript when I publish this result on a page. Is i...