Ask a Question related to PHP Development, Design and Development.
-
Owen Williams #1
strrpos and offset?
Hi,
I'm using PHP 4.3.4 the docs at:
[url]http://uk.php.net/manual/en/function.strrpos.php[/url]
tells me that strrpos can be passed an offset as the third
argument.
Can it?
E.g. strrpos($page, "/", $lastslash);
And are there class descriptions/header files for php libraries
so that I can check the syntax.
Thanks,
Owen.
Owen Williams Guest
-
Offset in Columnchart
Hi, Does anyone has try the offset of Column chart? I try to make some column chart with column overlapping one another. However, the example... -
#26255 [Opn->Bgs]: strrpos gives wrong result
ID: 26255 Updated by: iliaa@php.net Reported By: hongnk at hotmail dot com -Status: Open +Status: ... -
#26255 [NEW]: strrpos gives wrong result
From: hongnk at hotmail dot com Operating system: Win2K PHP version: 4.3.4 PHP Bug Type: Scripting Engine problem Bug... -
exec at offset != 0
Hi I would like to be able to simulate an exec but starting at byte N in a file (without creating a temporary file which is exec'ed later) I... -
note 33776 added to function.strrpos
I'm new to this and I made a little tidbit that will take a pathname of a folder and find out what it's parent folder is, or, find the path of what... -
Janwillem Borleffs #2
Re: strrpos and offset?
Owen Williams wrote:
Yes, as of PHP v5, the following will work:> Hi,
> I'm using PHP 4.3.4 the docs at:
>
> [url]http://uk.php.net/manual/en/function.strrpos.php[/url]
>
> tells me that strrpos can be passed an offset as the third
> argument.
>
> Can it?
>
> E.g. strrpos($page, "/", $lastslash);
>
$string = "abc/def/";
$pos = strrpos($string, "/", -2);
$string = substr($string, 0, $pos);
print $string; // prints abc
In PHP 4.x, only two arguments are accepted.
Read the note on the page that you have mentioned for details.
Sure, just download the source code distribution from [url]www.php.net[/url].> And are there class descriptions/header files for php libraries
> so that I can check the syntax.
>
JW
Janwillem Borleffs Guest



Reply With Quote

