what this code do .replace(' ', 'T') + ':00' code example Example: replace all numbers in string php $words = preg_replace('/[0-9]+/', '', $words);