<?php $array = [ '#A' => '12 > 5', '#B' => '4 > 3' ]; $string = '((#A) OR (#B) AND (#A))'; $string = str_replace(array_keys($array), $array, $string); echo $string;
You have javascript disabled. You will not be able to edit any code.