Good thinking... I like without the substr() because substr() take more time
than we want it to be
FletchSOD
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > --snip--
> > $char_code = strpos($char_set,(substr($input,$loop,1)));
> > --snip--
>
> even a little shorter
>
> --snip--
> $char_code = strpos($char_set,(substr($input,$loop,1)));
> --snip--
even a little shorter
$char_code = strpos($char_set,$input{$loop});
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think maybe this will do the trick..
--snip--
$char_code = strpos($char_set,(substr($input,$loop,1)));
--snip--
FletchSOD
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi, what is in your opinion is the best way to convert from JavaScript to
> PHP What I'm
3 matches
Mail list logo