I am working with array and json_encode, I having two array for example .
Array1:
-------
[0] => Hotels
[1] => Hotels-Hotels - Apartments
[2] => Hotels - ibis
[3] => Hotels - hotel
[4] => Hotels - muscat
[5] => Hotels - stay
[6] => ---------------------------
Array2:
[7] => First
[8] => Second
[9] => Third
echo json_encode($result, TRUE);exit
the result is
{"status":true,"response":["---------------------------","First","Second","Third"]}
But I need join the previous array value also, and the "----------"(line) should not be selectable.