MCQs > IT & Programming > PHP > What will show next code: $data = new stdClass; $data->var1 = 'word' $data->var2 = 'text' print_r( json_decode( json_encode($data), true ) );

PHP MCQs

What will show next code: $data = new stdClass; $data->var1 = 'word'; $data->var2 = 'text'; print_r( json_decode( json_encode($data), true ) );

Answer

Correct Answer: Array ( [var1] => word [var2] => text )

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it