Guardião Posted May 29, 2008 Report Share Posted May 29, 2008 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 Report Share Posted May 29, 2008 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 Author Report Share Posted May 29, 2008 Obrigado, mas já sei, é o Xor 😛 Link to comment Share on other sites More sharing options...
djthyrax Posted June 10, 2008 Report Share Posted June 10, 2008 É 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