비 객체에서 combinestring() 멤버 함수를 호출 할 때 문제가 발생했습니다.비 객체에서 combinestring()을 호출합니다.
**Index.php**
inlcude("string.php");
calldata('usa');
**string.php**
$a=new a();
funciton calldata($val){
$st1="select a from table 1 where country=".$a->combinestring($val);
return $st1;
}
**Class A**
function combinestring($abc){
Return "'".$abc."'";
}
unknow $ a-> combinestring ($ val);
이 문제를 해결하는 방법.
안부
당신이 변수에 멤버 함수를 호출하기 때문에