Posted by Matthew Weier O'Phinney on 09/06/05 21:13
* 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/
[Back to original message]
|