Home >Backend Development >PHP Tutorial > php从数据库中读取数据透过json发送到ios端

php从数据库中读取数据透过json发送到ios端

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:39:55833browse

php从数据库中读取数据通过json发送到ios端
我在php端读取数据库,把读出来的数据放到一个json格式的字符串中,然后发送到ios端,但是发现读出来的数据全部变成1了,然后我在php端判断其中一个查询出来的值是否为我知道的一个字符串,如果相同,就把这个字符串赋值给它以后传回来的就是正常的字符串

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn