| baseportal | |||
| English - Deutsch | "Es gibt keine dummen Fragen - jeder hat einmal angefangen" | ||
|
| Ausgewählter Eintrag: | Zur Liste |
| Alle Einträge zum Thema: | Zur Liste |
<perl>
my $data = decode_json('{ "foo": 1, "bar": [10, "apples"] }');
</perl>
<perl>
$X=php qq(return phpversion(););
$Y=php '$sample = array( "blue" => array(1,2), "ocean" => "water" );return json_encode($sample);';
$Y1=php qq($sample = array( "blue" => array(1,2), "ocean" => "water" );return json_encode($sample););
$Z =php '$data2 = json_decode('{ "foo": 1, "bar": [10, "apples"] }', true);return $data2';
outl "json_string: $Y"; # OK, läuft outl "json_string: $Y1";# NOT outl "decode_json: $Z"; # NOT </perl>
$hash_str=php ('
$data2 = json_decode('{ "foo": 1, "bar": [10, "apples"] }', true);
return serialize($data2);
');
$hash_ref=unserial($hash_str);
%hash=%$hash_ref;
$hash_str = php q($json='{ "foo": 1, "bar": [10, "apples"] }';return serialize(json_decode($json,1)););
$hash_ref=unserial($hash_str); %hash=%$hash_ref; out serial(%hash);
<perl>
$json=<<EOF;
{ "foo": 1, "bar": [10, "apples"] }
EOF
return serialize(json_decode('".$json."',1));
$hash_ref=unserial($hash_string);
out dump(%hash); </perl>
$hash_str = php q($json='{
| Liste der Einträge von 2550 bis 2700: | Einklappen | Zur Eingabe |
| Neueste Einträge << 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | Neuere Einträge < | Zur Eingabe | > Ältere Einträge | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 >> Älteste Einträge |
| © baseportal.de. Alle Rechte vorbehalten. Nutzungsbedingungen |