Re: [PHP] NH05 to 5, NH07 to 7

2004-11-26 Thread Hidayet Dogan
echo str_replace(NH, , NH13);

 Hidayet Dogan
  [EMAIL PROTECTED]

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



RE: [PHP] NH05 to 5, NH07 to 7

2004-11-26 Thread Ford, Mike
To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm



On 25 November 2004 22:11, Wiberg wrote:

 i guess you know a simple solution to convert the string
 
 NH01 into 1

I can think of several.



Oh, you want one?  How about:

   $x = NH01;
   $n = (int)substr($x, 2);

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] NH05 to 5, NH07 to 7

2004-11-25 Thread Wiberg
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



Re: [PHP] NH05 to 5, NH07 to 7

2004-11-25 Thread Raditha Dissanayake
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
 

yes
/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
 


--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php