0
CodeIgniterまたはPHPでecho-ed stringの値を取得する必要があります。PHP CodeIgniterでエコーされた文字列の値を取得しますか?
例
についてclass SampleClass {
function myFunc() {
echo "true";
}
}
class TestSampleClass {
$obj = new SampleClass();
function test_myFunc() {
$obj->myFunc();
// I want to get the 'true' string to be compared..
// how can i get the string 'true' that is echoed in myFunc()
}
}
それは可能ですか?
助けてください。
ありがとうございます。
なぜ値を返さないのですか? CodeIgniterでは、ビュー内のものだけを出力/エコーする必要があります。 – minboost