I am translating a JavaScript algorithm into PHP, and I came across a → symbol, and I don't know what that means. It's hard to search google for characters, so can someone tell me what that means?
This is a shift of the sign of the shift to the right . Many, many languages have this operator.
Wikipedia has a good article on this topic. My first link has a few examples and an explanation.
This is the operator with a slight shift: http://www.contactor.se/~dast/fpl-old/language/shift.HTML
, : x ,
x >> y
floor(x / (2 ** y))
2 ** y 2, y.
eg. x >> 3matches with floor(x / 8).
x >> 3
floor(x / 8)
Bitwise shift to the right
It looks like PHP also has this statement:
http://us2.php.net/operators.bitwise
Source: https://habr.com/ru/post/1717892/More articles:Tcl Starkit that reads from a Sqlite database - sqlitequeries loading with GORM / Hibernate - hibernatePHP: replacing hyphens in object variables with underscores - objectIn the MFC program, how to transfer data between different dialogs? - c ++cmath Errors Using FLTK - c ++Need a way to return the position of the scroll window after refreshing the page - javascriptWidget sharing between PyQT and Boost.Python - pythonbest c ++ command line parser - c ++How can I resize a WPF element after rotation, and not earlier? - .netHow to embed complex types in wsdl definition? - wsdlAll Articles