|
Posted by M. Sokolewicz on 02/18/05 13:35
Tyler Replogle wrote:
> $str_array = explode("/", ""/home/karthik/welcome.php/view.php");
> // $str_array[4] shoud be view.php
>
>> From: K Karthik <kkarthik@adventnet.com>
>> To: php-general@lists.php.net
>> Subject: [PHP] [php] -help me
>> Date: Fri, 18 Feb 2005 11:20:29 +0530
>> MIME-Version: 1.0
>> Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com
>> with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800
>> Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com
>> (ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for
>> <dbnm@hotmail.com>; Fri, 18 Feb 2005 00:49:59 -0500
>> Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 -0000
>> Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 -0000
>> X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90=
>> Return-Path: <php-general-return-208990-dbnm=hotmail.com@lists.php.net>
>> X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact
>> php-general-help@lists.php.net; run by ezmlm
>> Precedence: bulk
>> list-help: <mailto:php-general-help@lists.php.net>
>> list-unsubscribe: <mailto:php-general-unsubscribe@lists.php.net>
>> list-post: <mailto:php-general@lists.php.net>
>> Delivered-To: mailing list php-general@lists.php.net
>> Delivered-To: ezmlm-scan-php-general@lists.php.net
>> Delivered-To: ezmlm-php-general@lists.php.net
>> X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6
>> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
>> Gecko/20040913
>> X-Accept-Language: en-us, en
>> X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC)
>> FILETIME=[AEF42BA0:01C5157D]
>>
>> i have got string as "/home/karthik/welcome.php/view.php"
>> i just need "view.php" how shall i remove rest of the string.
>> please do help me.i am new to php.
>> -thanks,
>> karthik
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
or use basename()
Navigation:
[Reply to this message]
|