Function getdata($a, $b, $c=0){
....
}
The above paragraph can only give two parameters when calling, and the default value of the third parameter is 0.
Call method: getdata( 1, 1)
==========================================================
Function getdata($a, $b= 1, $c){
....
}
This paragraph should be called in the middle with a comma, for example: get data (1, 0).
==========================================================
Function getdata($a, $b=0, $c= 1){
....
}
This part can be called as follows: getdata( 1)