PHP封装返回Ajax字符串和JSON数组的方法 实例如下:<?phpclassDBDA{public$host="localhost";public$uid="root";public$pwd="123";public$dbname="mydb";// php返回数组