Re: php equivalent for cut

From: Date: Tue, 06 Sep 2005 18:13:34 +0000
Subject: Re: php equivalent for cut
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221917@lists.php.net to get a copy of this message
* Michelle Konzack <linux4michelle@freenet.de>: > I am searching for the right equivalent for "cut -d : -f5" > but it must work with php4. $fields = explode(':', $string, 5); > Since the website <http://www.php.net/manual/de/> has no > seperated manuals for php4 and php5, it is not easy to > find the right stuff. explode() works the same in both PHP4 and PHP5. Additionally, the manual is very good at detailing in what versions of PHP a function is valid. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/

« previous php.general (#221917) next »