korhan-Ö
11/7/2016 - 12:58 PM

#Json.php

$liste =  array();
    $e = new beacon();
    $e->uuid = $rs["uuid"];
    $e->major = $rs["major"];
    $e->minor = $rs["minor"];
    $e->durum = $rs["durum"];
    $liste[] = $e;

    echo json_encode($liste);

    veya

     $response["user"]["name"] = $user["name"];
            $response["user"]["email"] = $user["email"];