• Is it possible to check a custom field value for a character such as a currency symbol and then remove it from the field value so that the field contains a numerical value, not an alphanumercial / text value ?

    If so, what would be the best approach for this ?

Viewing 1 replies (of 1 total)
  • If you are trying to do this on a value after it is retrieved, you can use preg_replace() like this:

    $num = preg_replace('/[^0-9.]/','',$txt);

    Someone else may know how to apply this before the value is stored.

Viewing 1 replies (of 1 total)
  • The topic ‘modify custom field value – strip character if exists’ is closed to new replies.