<?php $where = array('bla = :bla' => 12); $expression = null; foreach($where as $cond => $term) { if(preg_match('/(:\S+)/', $cond, $matches)) { $expression = $cond; } } echo $expression;
You have javascript disabled. You will not be able to edit any code.