You see printed 0because you are adding +between string data and a nonexistent property. In PHP, to concatenate strings, do not use +; use the dot operator instead.
, true json_decode, , , . [], -> .
$json_data = json_decode($json,TRUE);
$num = $json_data['result'][0]['num'];
echo 'data: '.$num;