Re: Finding an '&'
| From: | Philip Olson | Date: | Thu, 25 Jan 2001 00:40:07 +0000 |
| Subject: | Re: Finding an '&' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36535@lists.php.net to get a copy of this message | ||
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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>