<?php $test = 'fact = true, fact2 = false, fact3 = true'; preg_match_all('/(\w+)\s*=\s*(true|false)/i', $test, $result); var_dump($result); ?>
You have javascript disabled. You will not be able to edit any code.