


PHP provides an interface for the app to carry parameters and return
Jul 29, 2016 am 09:00 AM<?php
function say(){
$test= $_GET["a"];
if (empty($test)) {
$data["result"]=(string) 2; echo json_encode($data);exit;
}else{
$data["result"]=(string) 1;echo json_encode($data);exit;
}
}
say();
? >
The above introduces the interface provided by PHP for the app to carry parameters and return them, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Convert basic data types to strings using Java's String.valueOf() function

Use Java's String.replace() function to replace characters (strings) in a string

2w words detailed explanation String, yyds

How to use the split method in Java String

Use java's String.length() function to get the length of a string

Convert a string to lowercase using java's String.toLowerCase() function
