Re: Best way to split string

From: Date: Fri, 24 Nov 2000 20:42:07 +0000
Subject: Re: Best way to split string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27034@lists.php.net to get a copy of this message
TC> I need to get the time token out of the following string. What is the TC> best function to use for this? TC> 09/12/00 12:05:00 WOW .. right from the manual .. SO if you know your string (as shown here) then ... substr (PHP3 , PHP4 ) substr -- Return part of a string Description string substr (string string, int start [, int length]) Substr returns the portion of string specified by the start and length parameters. If start is positive, the returned string will start at the start'th character of string. Examples: $rest = substr ("abcdef", 1); // returns "bcdef" $rest = substr ("abcdef", 1, 3); // returns "bcd" -- DSig David Tod Sigafoos mailto:dsig@teleport.com

« previous php.general (#27034) next »