ejemplo de un json - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ejemplo de un json.php
- <?php
- $array = [
- 'n1var1' => 125,
- 'n1var2' => 'texto1',
- 'n1var3' => [
- 'n2var1' => 125,
- 'n2var2' => 'texto2',
- 'n1var3' => [
- 'n3var1' => 125,
- 'n3var2' => 'texto3',
- ],
- ],
- ];
- echo json_encode($array);
- echo "\n";
- $array2 = [
- 'items' => [
- 0 => [
- 'itemId'=>7,
- 'quantity'=>2,
- ],
- 1 => [
- 'itemId'=>8,
- 'quantity'=>6,
- ],
- ],
- ];
- echo json_encode($array2);
File Description
- ejemplo de un json
- PHP Code
- 07 Oct-2021
- 546 Bytes
You can Share it:
Latest PHP Pastes