[OpenTRV-dev] OT: replacement of danish char's inside a word

Bo Herrmannsen EMAIL ADDRESS HIDDEN
Wed Mar 19 17:25:21 GMT 2014


to big.... it will not fit... its the buzzer only i need


Den 19/03/2014 kl. 17.50 skrev Stuart Poulton:

> How about this
> 
> http://shop.pimoroni.com/products/pibrella
> 
> On 19 Mar 2014 14:32, "Bo Herrmannsen" <EMAIL ADDRESS HIDDEN> wrote:
> Figured it....
> 
> Now where do i find a buzzer for 3.3V that does not overload the Ras Pi's GPIO pins?
> 
> 
> 
> Den 18/03/2014 kl. 14.14 skrev Bo Herrmannsen:
> 
> > Hi
> >
> > anyone that can help me out with php?
> >
> >
> > i need to replace some special danish char's with something else. This should happen no matter where they pop up.
> >
> >
> > $string = $row['delivery_street_address'];
> >
> > $patterns = array();
> > $patterns[0] = '*å*';
> > $patterns[1] = '*æ*';
> > $patterns[2] = '*ø*';
> >
> >
> > $replacements = array();
> > $replacements[3] = '/x7D';
> > $replacements[2] = 'X';
> > $replacements[1] = '/x7C';
> >
> > echo preg_replace($patterns, $replacements, $string);
> >
> >
> >
> > the address in this case is: Sandkæret 1,1,1
> >
> > but these 3 letters can pop up anywhere in any numbers
> >
> > all help is welcome :-D
> >
> >
> 
> _______________________________________________
> OpenTRV-dev mailing list
> EMAIL ADDRESS HIDDEN
> http://lists.opentrv.org.uk/listinfo/opentrv-dev
> _______________________________________________
> OpenTRV-dev mailing list
> EMAIL ADDRESS HIDDEN
> http://lists.opentrv.org.uk/listinfo/opentrv-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20140319/9bf014b4/attachment.html>


More information about the OpenTRV-dev mailing list