echo str_replace("NH", "", "NH13"); Hidayet Dogan hidayet.dogan@xxxxxxxxxxxxxx Pleksus Bilisim Teknolojileri D.T.O. A.S. ---------------------------------------------------------- caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr tel : +90 312 4355343 * faks: +90 312 4354006 On Thu, 25 Nov 2004, Wiberg wrote: > hi there! > > i guess you know a simple solution to convert the string > > NH01 into 1 > NH02 into 2 > .. > ... > NH13 into 13 > > and so on > > /Gustav Wiberg > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.799 / Virus Database: 543 - Release Date: 2004-11-19 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php