Bonjour à tous,
Je souhaite remplacer mon preg_replace par preg_replace_callback mais je coince...
Code PHP : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 # Récupération des macros if ($this->getOpt('active_macros')) { $in = preg_replace('#^///(.*?)///($|\r)#mse',"\\\$this->__getMacro('\\1')",$in); } # Récupération des macros if ($this->getOpt('active_macros')) { $in = preg_replace_callback('#^///(.*?)///($|\r)#mse', function () {return ?????? ;} ,$in); }
Merci de votre aide.
Partager