Re: [PHP] pcre little problem

2011-11-08 Thread QI.VOLMAR QI
I've got with preg_replace(). But I guess that filter_var could be used instead. Em 08/11/2011 08:46, "tamouse mailing lists" escreveu: > On Mon, Nov 7, 2011 at 5:54 AM, Richard Quadling > wrote: > > On 4 November 2011 16:52, QI.VOLMAR QI wrote: > > > >> i have this part of code that works with

Re: [PHP] pcre little problem

2011-11-08 Thread tamouse mailing lists
On Mon, Nov 7, 2011 at 5:54 AM, Richard Quadling wrote: > On 4 November 2011 16:52, QI.VOLMAR QI wrote: > >> i have this part of code that works with DOMDocument: >> >> public function translateNFeXML(NFE $nfe_factory) { >>        $inf_adic = $nfe_factory->createElement('infAdic'); >>        if (

Re: [PHP] pcre little problem

2011-11-07 Thread Richard Quadling
On 4 November 2011 16:52, QI.VOLMAR QI wrote: > 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_fact

[PHP] pcre little problem

2011-11-04 Thread QI.VOLMAR QI
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);