HI. I've setup an experiment with a certain configuration (traffic split, traffic allocation etc.) in the interface, and it gave me this snippet of code to insert
Copy code
<?php
$experiment = new Growthbook\Experiment(
"special-offers-test",
["Control", "Variation 1"]
);
$result = $user->experiment($experiment);
echo $result->value; // "Control" or "Variation 1"
The code itself doesn't reflect the configuration I chose (traffic split, traffic allocation).
Is there something I should add to this default PHP code?
I use interface on growthbook.io with PHP client library installed on my end.
Thanks!