Welcome Guest, Not a member yet? Register   Sign In
problem in to create json
#1

hi everybody

i new start work with codeigniter

i have problem in create and fillterin in json

i create json file but i can't strip_tags in json array

for example :
PHP Code:
$json strip_tags($temp);
     

$GLOBALS['data'] .= str_replace('  '' ',$json); 
but in codeignter it dosent work ;

PHP Code:
$this->output->set_content_type('application/json')->set_output(json_encode($data)); 

sorry i can't good speak engilsh Sad
Reply
#2

these two snippets do 2 totally different things
Reply




Theme © iAndrew 2016 - Forum software by © MyBB