- var_dump: documentation ( source)
- json_encode: documentation ( source)
<?php
$a = [
"customer" => [
"id" => $expectedOriginId = 1,
"email" => $expectedEmail = "john.doesdfsdf@example.com",
"profile_type" => $expectedProfileTypeId = "c",
"register_type" => $expectedRegisterTypeId = "r",
"gender" => $expectedGenderId = "male",
"birthday" => $expectedBirthday = "1980-04-15",
"registration_date" => $expectedRegistrationDate = "2013-07-31T16:59:43+1000",
"last_session" => $expectedLastSession = "2013-07-31T17:09:39+1000"
]
];
var_dump(
json_encode($a)
);