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.
Predis でトランザクションを作成していますが、独自の変数を匿名トランザクション関数に渡す方法がわかりません。
$options = array(); $x = 13; $transaction = $predis->multiExec($options, function($transaction) { //i need $x here });
オプション配列に追加しようとしましたが、無名関数内で保護されています。
これどうやってするの?