Guardião Posted May 29, 2008 at 02:37 PM Report Share #188334 Posted May 29, 2008 at 02:37 PM Olá a todos, estava analisar um script e tenho uma pequena duvida na seguinte linha: $acd=$decimalCampo ^ ord(substr($chave, $contador-1, 1)); Para que serve o “^” ? É a potência? Será que alguém podia ajudar-me? Link to comment Share on other sites More sharing options...
fnds Posted May 29, 2008 at 03:13 PM Report Share #188346 Posted May 29, 2008 at 03:13 PM Não sei, experimenta fazer echo 10^2; e vê se dá 100. Link to comment Share on other sites More sharing options...
Guardião Posted May 29, 2008 at 03:15 PM Author Report Share #188347 Posted May 29, 2008 at 03:15 PM Obrigado, mas já sei, é o Xor 😛 Link to comment Share on other sites More sharing options...
djthyrax Posted June 10, 2008 at 03:27 PM Report Share #190497 Posted June 10, 2008 at 03:27 PM É o xor, para fazer potência usa-se o pow(base, expoente) Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now