Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
phpからの呼び出し関数が機能しません...
function Footer() { $this->Cell($this->PG_W, 5, 'All quotes are valid for 30 days. QUOTE EXPIRES: '**.$person["CA"]**, 0, 0, 'L'); }
。$person["CA"]-テキストには表示されません
何か案は??
あなたは関数の中にいて、という名前の配列は$personそのスコープに自動的にインポートされません。
$person
$personを使用して関数のスコープにインポートするglobalか、パラメータとして、または存在していると思われるオブジェクトのプロパティとして渡す必要があります。
global
参照:PHPマニュアルの変数スコープ