Re: [PHP] php equivalent for cut

2005-09-06 Thread tg-php
The closest you get to 'cut' in PHP is probably the 'explode' command. It splits a string by a delimiter like 'cut' does, only it dumps the results into an array: $etcpasswd = "username:passwd:123:345::/home/username:/bin/sh"; $pwdarr = explode(":", $etcpasswd); echo $pwdarr[4]; That should

[PHP] php equivalent for cut

2005-09-06 Thread Michelle Konzack
Hello, I am searching for the right equivalent for "cut -d : -f5" but it must work with php4. Since the website has no seperated manuals for php4 and php5, it is not easy to find the right stuff. Greetings and good evening Michelle -- Linux-User #280138 with th