Re: Removing an aspect of a variable...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tnx.

----- Original Message ----- From: "rich gray" <richgray@xxxxxxxxx>
To: "Rob W." <rob@xxxxxxxxxxxxxxx>
Sent: Tuesday, June 06, 2006 2:44 AM
Subject: Re:  Removing an aspect of a variable...


substr($variable,0,-2);

Rob W. wrote:
Say I have a variable setting an ip address of 192.168.100.0

I want to be able to remove the last to chr's of that variable ie: .0

What would be my best solution to do that?




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux