Page 1 of 1
what is ^ symbol
Posted: Thu Jul 26, 2012 11:10 pm
by global_erp_solution
I encountered this code:
what operation is this? I've searched in php manual, but couldn't find it. thanks
Re: what is ^ symbol
Posted: Fri Jul 27, 2012 1:48 am
by social_experiment
I found two 'uses' for the caret (^) in the book i have about php
1. used with
money_format()
2. used in regular expressions to negate characters / character classes
Re: what is ^ symbol
Posted: Fri Jul 27, 2012 3:24 am
by requinix
Re: what is ^ symbol
Posted: Fri Jul 27, 2012 3:31 am
by global_erp_solution
yes, XOR seems right. thanks
Re: what is ^ symbol
Posted: Fri Jul 27, 2012 3:31 am
by social_experiment
Interesting. Something new to look into