worried-businessperson-32427
11/07/2023, 3:45 PM$trackingCallback = function (
Growthbook\InlineExperiment $experiment,
Growthbook\ExperimentResult $result
) {
file_put_contents('/tmp/test.log', date("Y-m-d H:i:s") . ": " . "event fired!!!" . "\n", FILE_APPEND);
};
$growthbook = Growthbook::create()
->withTrackingCallback($trackingCallback);
$growthbook->loadFeatures("xxxxxxxx", "<https://cdn.growthbook.io>");
if ($growthbook->isOn("test-example")) {
echo "Feature is enabled!";
} else {
echo "Feature is NOT enabled!";
}
rhythmic-agent-34208
11/07/2023, 3:45 PMworried-businessperson-32427
11/07/2023, 3:46 PMbrief-honey-45610
11/07/2023, 3:52 PMworried-businessperson-32427
11/07/2023, 3:52 PMrhythmic-agent-34208
11/09/2023, 1:24 AMworried-businessperson-32427
11/14/2023, 9:15 AMbrief-honey-45610
11/14/2023, 3:18 PM