I am passing a condition as a string to my method and I want to use it inside an if statement like so but it doesn't seem to work.
if (!( $field $condition $value )) {
//code here
}
Is there a way to do this in PHP. I have tried wrapping $condition in curly brackets but does not work.
many thanks in advance
Aucun commentaire:
Enregistrer un commentaire