<?php
#header("Access-Control-Allow-Origin: http://omega-chat-catch.localhost/");
header("Access-Control-Allow-Origin: *");

$array = array(
	"kd" => "22",
	"datanya" => array(
		"kode_chat" => 775,
		"pengirim" => "Halolo",
		"penerima" => "Homomo",
		"isi_pesan" => "Lorem ipsum dolor sit amet lipsum generator haloha ver",
		"iskirim" => "5",
		"tanggal_kirim" => time(),
		"for_tanggal_kirim" => date('d M Y H:i:sA', time()),
		"ismasuk" => "6",
		"tanggal_masuk" => time() - (2200),
		"for_tanggal_masuk" => date('d M Y H:i:sA', time() - (2200)),
		"isbaca" => "7",
		"tanggal_baca" => time() - (1200),
		"for_tanggal_baca" => date('d M Y H:i:sA', time() - (1200)),
		"ishapus" => "8",
		"tanggal_hapus" => time() - (600),
		"for_tanggal_hapus" => date('d M Y H:i:sA', time() - (600)),
		"byhapus" => "9",
		"path_image" => 'http://bali.axioo.com/beyondadminwords/files/3/166/axioo%20robert%20sarah%20wedding%20bali%2004.jpg',
		"html_string" => '<div class="lompat-lompatan">
			<table>
				<thead>
					<tr>
						<th>Kepala 1</th>
						<th>Kepala 2</th>
						<th>Kepala 3</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>Isi 1</td>
						<td>Isi 2</td>
						<td>Isi 3</td>
					</tr>
					<tr>
						<td>Isi 1</td>
						<td>Isi 2</td>
						<td>Isi 3</td>
					</tr>
				</tbody>
			</table>
		</div><!--/.lompat-lompatan-->',
	),
	
);

echo json_encode($array);
?>