fyi, that little snippet that rasmus presented is being used incorrectly,
i think you are actually wanting :
if($retrn{strlen($retrn)-1} == '&')
as $str was just the string which in this case seems to be $retrn . also,
i think this tutorial will help you with strings :
Using Strings :
----------------------------------------------
http://www.zend.com/zend/tut/using-strings.php
print it out too, seriously, it's helpful and should be referred to on
occasion.
regards,
--
philip olson
http://www.cornado.com
be outside the box.
On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote:
> Should this correctly find '&' or is & and special searching character?
>
> # looking for an & at the end
> $retrn = AASIDFIFJ&
>
> if($str{strlen($retrn)-1}=='&')
>
> Thanks!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]