seikan Posted January 3, 2008 Share Posted January 3, 2008 What is "^" system mean in PHP ? What is mean by 2^3 ?? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/ Share on other sites More sharing options...
kts Posted January 3, 2008 Share Posted January 3, 2008 something to do with binary, not quite sure Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428889 Share on other sites More sharing options...
dewey_witt Posted January 3, 2008 Share Posted January 3, 2008 It means that it is 2 to the power of 3 in most programing languges. Im almost certain it is the same with PHP altho not sure. Anyone else? Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428896 Share on other sites More sharing options...
simcoweb Posted January 3, 2008 Share Posted January 3, 2008 Whatever it is I can't find it in any of the tutorials or references I have. Here's a list of the operators: http://www.htmlgoodies.com/beyond/php/article.php/3472471 Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428899 Share on other sites More sharing options...
dewey_witt Posted January 3, 2008 Share Posted January 3, 2008 Im almost possitive.... that it is the exponant opperator. it is in java, vb, vb.net, and, c so ehe if it isnt then smear my face in jelly and tie me to an ant hill. Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428903 Share on other sites More sharing options...
mmarif4u Posted January 3, 2008 Share Posted January 3, 2008 Yes dewey_witt is right,it is exponent operator in java etc.its not in php or maybe it is but the result for java is diffrenet than php. Example: <?php $id=2 ^ 3; echo $id; ?> The result in java will be 8 but in php it will be 1,not sure why? Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428914 Share on other sites More sharing options...
dewey_witt Posted January 3, 2008 Share Posted January 3, 2008 I beleive that maybe it is a root function of some sort? I dunno. They do have a section in php help that is for php math help I think you may do better there than here. If a quick anwser is what you are needing. Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428916 Share on other sites More sharing options...
kenrbnsn Posted January 3, 2008 Share Posted January 3, 2008 Instead of guessing what the operator "^" is, go to the online manual for operators and read the different sections. There you will discover that the "^" operator is a bitwise operator. Ken Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428983 Share on other sites More sharing options...
mmarif4u Posted January 3, 2008 Share Posted January 3, 2008 Thanks Ken for the link,really appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/84223-help-what-is-mean-by-this-symbol/#findComment-428992 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.