pcre little problem
| From: | QI.VOLMAR QI | Date: | Fri, 04 Nov 2011 16:52:50 +0000 |
| Subject: | pcre little problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-315593@lists.php.net to get a copy of this message | ||
i have this part of code that works with DOMDocument:
public function translateNFeXML(NFE $nfe_factory) {
$inf_adic = $nfe_factory->createElement('infAdic');
if ($this->inf_ad_fisco) {
$inf_adic_fisco =
$nfe_factory->createElement('infAdicFisco', $this->inf_ad_fisco);
$inf_adic->appendChild($inf_adic_fisco);
}
$string = "a=10&b[]=20&c=30n°&d=40+:50";
die(preg_filter('/[^:][[:punct:]]/', '', $string));
$inf_cpl = $nfe_factory->createElement('infCpl',
$this->inf_complementar);
QUESTION: Why the preg_filter causes a end of the application, with no
error throwing (even in die don't appears nothing)?