dtz63853 2018-05-07 13:16 采纳率: 0%
浏览 49
已采纳

在json数组php中存储变量

I'm storing the result of sql in a variable :

$Sql_Query = "select * from users where username = '$username' ";
$check = mysqli_fetch_array(mysqli_query($con,$Sql_Query));

$temp=$check['fierbase_id'];

then I want to pass the variable to Jason Array, am I doing it right?

$registrationIds = array( '$temp' );
  • 写回答

2条回答 默认 最新

  • duanlu9816 2018-05-07 13:40
    关注

    You might have a typo on fierbase_id, I think it should be firebase_id.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?