0

My Json:

[{"date": "2017-04-27 00:00:00", "type": "meeting", "title": "Başlık", "description": "açıklama", "url": "#"},{"date": "2017-04-27 00:00:00", "type": "meeting", "title": "Başlık", "description": "açıklama", "url": "#"}]

ı want this type json with php, help me pls.

Ankur Tiwari
  • 2,762
  • 2
  • 23
  • 40

1 Answers1

0

Try below:

$arr = array ( 
  array (
    'date' => '2017-04-27 00:00:00',
    'type' => 'meeting',
    'title' => 'Başlık',
    'description' => 'açıklama',
    'url' => '#',
  ),
  array (
    'date' => '2017-04-27 00:00:00',
    'type' => 'meeting',
    'title' => 'Başlık',
    'description' => 'açıklama',
    'url' => '#',
  ),
);
echo json_encode($arr );
Pankaj Dadure
  • 679
  • 5
  • 11