On 06/06/06, Rob W. <[EMAIL PROTECTED]> wrote:
Say I have a variable setting an ip address of 192.168.100.0I 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?
Remove the last two characters of a string? $shorterString = substr($string, 0, -2); Whether that's really what you want to be doing with an IP address is up to you. -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php