var_dump( preg_replace('/.?$/s', "x", 'abc'), preg_replace('/.$/s', "x", 'abc') );
Outputs:
string(4) "abxx" <-- strange, isn't it? string(3) "abx"
How's that possible?
Aucun commentaire:
Enregistrer un commentaire