Re: php equivalent for cut

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

 



* Michelle Konzack <linux4michelle@xxxxxxxxxx>:
> 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/

-- 
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