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)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php