I have to output $var1. To do that, I return results by using
sendJson($var1);
And this is working fine for me. Now I want to pass two variables $var1 and $var2 using sendJson();. Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put them all inside an array:
Or name them if you don’t want to do it index-based: