Hi,
I’m trying to edit the fieldvalue, here I would like to delete all blank space from a string
I’ve tried something like (we can shorten the code obviously … but it’s to test) and it doesn’t work.
$crud->callbackBeforeInsert(function ($fieldValue) {
$fieldvalue = str_replace(' ', '', $fieldvalue);
return $fieldValue;
});
Any advice ?